If Ukraine had not surrendered its own nukes, Putin would not have attempted this blitzkrieg.
NH,
Nukes are expensive to maintain. From the beginning Ukraine could not afford them maintenance wise. Before this invasion their economy was getting more substantial but by now those nukes would have been worthless.