US history is more complicated than that, and aside from those four years of hot war, more ambiguous.
Henry Ford was a big Nazi sympathizer, and the Apollo program was led by an actual card-carrying Nazi engineer with a history of overseeing slave labor in a concentration camp.
Which is not meant to defend Nazis, just correct the myth that the US was once somehow morally pure in this regard.