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

Keep food for a week in the pantry.

I keep my specimens under glass to protect them.
different meanings