We know a lot about the events building up to it, but "necessary" requires some framing. If by "necessary" you mean "did the atomic bombings force Japan to surrender," the answer is mixed -- maybe, but other factors played into it as well. If by "necessary" you mean "did it have to be used," this answer gets into it pretty well.