While this is possible, it's clear that this would be a deterrence first. The point would be that minor strikes or political actions would not have a much higher cost. For example, North Korea does not want to nuke the US. They want to possess nukes such that US actions are more constrained. It's a very unfortunate incentive.