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

Cross-referenced with "Was the federal government's use of the Emergencies Act in 2022 justified?"