In 1945, the USA had dropped 2 atomic weapons on Japan. Almost 20,000 people were killed. Japan then surrendered shortly after, ending World War II. Was the US justified?

(Must be 3-5 sentences), and I will give Brainliest to the first person! Thank you to whoever answers :)
Please no links