Teaching someone a lesson means they were taught something. I don't think that will be the case here. No, they are most certainly not the same thing.