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.
(..) George Washington never cut down a cherry tree... and he never said he couldn't lie. People made those stories up to teach kids a lesson about lying... but they're not true. He did cross the Delaware River, Christmas night, , though. My dad took me there this summer. We crossed it, too. (..)2014 Mr. Peabody & Sherman