Yes. Failure is the best teacher. Reason for this is that, when you fail you rise up and start again and when you get to that Same point you failed before, you wouldn't want to fail again because you have learned your lesson. Then, you would be able to surpass the task before you.