Arms do not win wars without people holding them, and even then, fighting off an agressor does not mean your country isn't ruined.
Ukraine was in the process of ditching its buffer state status by choosing a side. They bragged for a decade how they are going to do that. Needless to say it didn't go so well for them, and only them so far. Other countries in thir position turned out to be smarter as not to win the first Russian invasion target prize.
Please note that I'm not asking for a moral judgement because everybody else who may pass it has worse skeletons in their own closet than Russian Ukraine affair.