Even if the war, it should prevent the use of nuclear weapons.
Most of the time, the casualties of war are innocent civilians.
Is it debatable whether the bombings were necessary in order to end the war? Arguably it was the Soviet Union’s abandoning of a previous mutual non-aggression pact that scared the Japanese forces into surrender.
The damage of nuclear weapons in war time extends to the general public, and the United States has used them twice within a relatively short period of time in WW2. (America dropped an atomic bomb on the cities of Hiroshima and Nagasaki.)
During the war, forces should not have been allowed to use nuclear weapons to victimize innocent civilians. Efforts should have been made to give civilians time to evacuate to minimise the level of civilian casualties at least. There was an alternate plan, formulated by the US military, to drop the nuclear bomb on Mount Fuji. But as there were only two bombs, and one may not work as they had never been tested, the US decided to test them on civilians.
Atomic bombing causes large amounts of damage to ordinary citizens. Thus, it was the wrong decision to use twice a nuclear weapon.