Justified during world war 2

Was the use of the atomic bomb morally justified during world war 2