Yes it certainly was as affirmed by all the scholars and historians.
And as usual the usa did not declare war on germany until 1941(battle of britain was in 1940),after they knew which way the war was going same as in ww1.
Actually, Germany declared war on the U.S. and the Hitler's biggest mistake was Barbarossa.