With everything else as constant (the planet's gravity, itself), then yes, this is true. But, if the planet's gravity still exists, then the Sun's gravitational force doesn't matter as much because of the astronomical distance between the two bodies.