Yea that's the prevailing theory. Because of Jupiter's size and position in our solar system it likely intercepts a lot of the nastiest asteroids that are big enough that an impact with earth would wipe out all life. It's also believed that if it were not for Jupiter life might not have been able to evolve on earth at all