Not really. Nuclear explosions don't mix well with organic life. And humans are often near nuclear weapons.
But IMO this will be used to scare the nuclear weapons owners, they will need to invest a lot into shielding all their bombs or reducing the number of such bombs, probably at that time when this tech is possible we will have antimater bombs
There’s no way to shield your missiles from a beam that can penetrate right through the planet.
You then nuke that country out of existence, as is standard policy if governments fear an attack on their strategic capability.
You could also, eg, track the facility ingesting that incredible amount of power — whose signature would be basically impossible to hide from satellites.