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

Cross-referenced with "What party would you vote for if a federal election was held today?"