A musician fails to perform a piece hundreds or thousands of times while learning it. A programmer fails to apply a concept many times until they fully understand it. To imply that failure is not normal and not alright is to imply that everybody should be able to perfectly do anything in their life without any prior practice.
Clearly, the word "failure" in this context is insufficient, because we all would agree that some failures are unreasonable and some are an absolutely normal and necessary part of personal growth.