Mistakes are not failures. But repeated mistakes are considered a decision. Repeated wise decisions are the building blocks of success, while unwise decisions are the building blocks of failure.
Proverbs 24:3 "Through wisdom is a house built; And by understanding it is established;"