Does the word "take" have the same definition in the next two sentences?

Take the gun from your pocket.

The test grader takes off a point for every misspelled word.
the same meaning