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

Get a life.

His heroism saved a life.
different meanings