Nuclear weapons are a MAD red line that will result in total annihilation of the attacker. They are only useful in a defensive capacity.
This kind of aggression, however, does seem to make their value as a deterrent clear.
Observe how nobody is fucking with North Korea like they did with Iraq or Venezuela.