By the doctrine of “just war” - yes.
A citizenry is ultimately responsible for the actions of its government.
Just to chime in, but I now reject Protestant just war theory. If it saves the lives of US soldiers I say do what it takes - which is what happened in Dresden and Hiroshima.