Problem: Sentence1: To strip to the buff.
Sentence2: Swimming in the buff.
Q: Does the term buff mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: Charlie likes to play Mary.
Sentence2: The engine has a wheel that is playing in a rack.
Q: Does the term play mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: Keep food for a week in the pantry.
Sentence2: I keep my specimens under glass to protect them.
Q: Does the term keep mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: We vaccinate against scarlet fever.
Sentence2: The nurse vaccinated the children in the school.
Q: Does the term vaccinate mean the same thing in both these sentences?

Answer:
the same meaning