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

Cross-referenced with "What should the West's goal be with regard to Ukraine?"