While Ukraine had Soviet nuclear weapons, it did not have the launch codes, infrastructure, technical knowledge, or the economy needed to convert them into an arsenal under their sovereign control. Moscow still “held the keys” for all of those warheads.
Given how insistent the international community was on making sure those nukes were disposed of, and how economically devastated post Soviet countries were, I don’t think Ukraine stood any chance of having a nuclear deterrent.