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

Cross-referenced with "Which statement is closest to your view of Canada's gun control laws?"