Yes.
Reflecting on our actions can help us a lot. It can make us think what we did wrong, and when we discover what is the wrong in our actions, we will learn to never do the same mistake again. We can learn errors and mistakes we do by reflecting on our actions. Of course, we can also see what we did right. But, we mostly reflect when we get scolded so that we can think of what we did wrong.
Hope that this helped you out :D