I'm glad they got caught. That will 'teach them a lesson'! [=they will learn that they should not do that again]
We 'learned our lesson' the hard way. [=we learned from an unpleasant experience]
They studied the 'lessons' [='teachings'] of the great philosophers.
(..) What happened, one through three were taken? What's your name? Christina. Well, Christina. The first lesson you learn from me if you wanna survive here, is keep your mouth shut. Do you understand me? Yes. Good. (..)2014 Divergent