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.
(..) My uncle Ben's life insurance. Yes, but I'm afraid... ...i's just not sufficient to refinance your home. Oh, but I'm giving piano lessons again. You are? We appreciate that you've just opened up... ...a new supersaver account with us today. (..)2004 Spider-Man 2