From what I understand, as long as an asteroid enters a body's gravitational field with less velocity than the escape velocity required to remain on their current trajectory, the asteroid is at least largely affected by the gravity of the planet. Usually this will involve ridiculous parabolic orbits or escape trajectories unless the moon and earth both interact to bring the velocity relative to Earth slower and then we may see a respectable elliptical trajectory.