You are 100% correct, of course. The best way to learn is to make the mistakes and see where you went wrong and fix it... I made enough of them along the way...and keep finding new ways to make them..
Sometimes it can also be useful and spare some time and frustration to get a solution, dissect it and figure out WHY it works and then use the knowledge to recreate it in a different situation. That's all I meant.