That's not how Celestial Mechanics work!
Unless an object strikes the Earth (or is at least slowed down by the Earth's atmosphere = aerobraking), it will fly by it (assuming that the object, itself, doesn't have thrusters).
Regards,
If that thing deviates a little inward we could have a problem. Stuff hits our atmosphere all the time. Most of it is small and burns up. Some stuff impacts. And some things streak in and keep going on out. It’s a crapshoot. But something big will hit us at some point, of that you can be certain.