Under the present circumstances of the Ukraine-Russia war, would Ukraine be justified in developing nuclear weapons?

Cross-referenced with "Given recent world events, would you support higher defence spending, if it meant somewhat less money for other priorities?"