Does "pull" mean the same thing in these two sentences?

You're going to have to pull harder to get that cork out of the bottle.

He pulled out his gun before she had a chance to scream.
the same meaning