It depends. Nothing teaches better than failure. Of course I don't need to try heroin to know it's bad, but there are many other things that are worth trying and learning from.
To tie it to HN, the vast majority of new companies fail. Wisdom would say don't waste time on a new company, yet many of us do just that.