Totally!
I don’t actually believe in failure.
Failure only occurs when someone chooses not to learn from an experience.
Thus to your point, whether it is good or bad, there is always something to learn.
I tell my son this all the time: It’s even possible to learn from a jackass (donkey) :)