It’s not a foregone conclusion that it is a good thing. Some strategists like Peter Zeihan think if Ukraine “wins” it will prompt a defensive nuclear exchange from Russia. In that case, history might look at Musk differently.
Ukraine actually managing to retake all of their prewar territory might plausibly cause Russia to go totally insane and start nuking, but the way things are going it seems like a pipe dream for Ukraine to make that much progress. Maybe if some serious changes to the balance of force occurred, like a surprise admission of Ukraine to NATO, but this isn't very realistic.
(Anything more than that, some sort of "Ukrainian forces in Moscow executing Putin for war crimes" is just pure fantasy. So no matter what happens, relative security is the best anybody can hope for.)