That is good advice, and it works.
We all are humans, and our mistake is part of a good life. Your story is true for most people, but what many do with it matters more than the mistake.
My daughter asked last week what regret I have in life. I told her none, but the lessons that helped me show her and others what to avoid as much as they could.
Well done.