No, I don't agree. There's more to life than money. In money terms, you may have wasted your time. Did you learn anything? Did you have fun? Not a total waste, then.
Look, you can make a side project into an obsession that eats your life. Don't do that. But for more reasonable levels of "side project", they have a place even if they never make any money.