In both instances the child knew they screwed up and were sorry for it.
But just because they were sorry, does that mean they avoided the punishment though? They knew what they deserved (or what was coming to them??) but the song doesn't actually say anything does it? I suppose it depends on what you read between the lines.
Maybe I have this idea because I spent most of the afternoon talking about heaven, hell, salvation and the like!