What? Are you saying that a potential attacker would preemptively nuke Japan before tensions escalate if Japan started developing nukes? Because if so, what ridiculous world do you live in? That'd be like Russia flat out nuking Ukraine last year instead of bothering with an invasion.
If attacked by nukes they will not be able to build shit.