Sadly, nuclear technology had already been stolen by the Soviets, before Truman even knew they existed, a couple weeks after FDR died.
By the time the bomb was tested at “Trinity” the Soviets knew almost everything the Americans we doing and were working on their own bomb.
Stalin knew before Truman announced it.
The Soviets (and today’s Russians) are master spies.