Not only should we learn from mistakes,but we should try very hard not to make the same mistakes.
Many non-Catholics think that Confession means that the sins are forgiven, and they can sin again!. Not so! When the priest gives "absolution", he says, "Go, and sin no more."
In other words, don't make the same mistake again!