Only as a matter of convenience and "enemy of my enemy". If Stalin had the bomb at the end of WW-II, and we didn't', WW-III would have commenced very shortly thereafter. The world would have been a very different place than it is today.
Note - the Trinity Test was over a year ago at that time.