While other answers are not wrong, what still needs to be mentioned is [Lagrange Points][1].
[![Diagram showing position of  Sun-Earth-Moon system of Lagrangian points][2]][3]
These points are invoked when considering the 3 body problem. One example of such system is the Sun-Earth-JWST (L2 point). Another could be Earth-Moon-some Radio Telescope.

The interaction forces from two massive bodies causes a few points in space where these forces form a valley (L4, and L5) or a saddle point (L1, L2, L3). The valleys of larger planets are where we observe collection of space rocks and dust (Jupiter with its Trojans). No energy is required to stay inside this valley. These points act like virtual masses that other objects can orbit. The saddles are semi-stable points where over time, drift would still lead to a divergent orbit, but only small corrections are needed to maintain stable orbit around that Lagrange point.

Therefore, objects placed on L4 and L5 would never hit the Earth, even though they would share the same orbital path.

  [1]: https://en.wikipedia.org/wiki/Lagrange_point
  [2]: https://i.sstatic.net/tESax.jpg
  [3]: https://en.wikipedia.org/wiki/Lagrange_point#/media/File:Lagrange_points2.svg