Does word "pull" have the same meaning in the following two sentences?

The pull of the moon.

Iron fillings drawn by the pull of a magnet.
the same meaning