Is resign used to mean the same thing in the next two sentences?

He had no choice but to resign the game and let his opponent become the champion.

The chairman resigned when he was found to have misappropriated funds.
different meanings