Are space objects affected by planets? If so, why?

Planets can impact the trajectory of objects in space, because they are pulled by the planet's gravity.