Did the dropping of the atomic bombs on Hiroshima and Nagaskai have a justifiable cause?

Did the dropping of the atomic bombs on Hiroshima and Nagaskai have a justifiable cause?