Oh, yeah close to the Planet only the Planets Gravity matters to you and nothing else, since you are in the Planets Frame of Reference, and the Planet itself will then be affected by Gravity of other spaceborne Objects.
Yeah Atmospheric Friction would fuck that one up real fast.