Is the word "pull" used in the same way in the following two sentences?

The spaceship came under the pull of the gas giant.

The pull of the moon.
the same meaning