That's not the lesson they'll learn. The problem is that they don't care about the game as a living story, but as a game they can win through violence. Using this encounter will just tell them that the DM can cheat to win.
To quote the show Sharpe: "Flogging teaches a soldier only one lesson. How to turn his back."