Q: Does the word "rap" mean the same thing in "You can't act irresponsibly and then expect me to take the rap." and "It was a bum rap."?

A: the same meaning

Q: Does the word "expression" mean the same thing in "The best poker players can tell if the opponents have a good hand by looking at their expression." and "Her expression changed from joy to misery after realising her winning lottery ticket had expired."?

A: the same meaning

Q: Does the word "work" mean the same thing in "Work the raisins into the dough." and "Do you want to work after the age of 60?"?

A: different meanings

Q: Does the word "production" mean the same thing in "Shakespeare's production of poetry was enormous." and "The production of white blood cells."?

A:
the same meaning