It is a myth. Socialism requires worker ownership and control of the means of production. In Nazi Germany, private capitalist individuals owned the means of production, and they in turn were frequently controlled by the Nazi party and state. True socialism does not advocate such economic dictatorship -- it can only be democratic. Hitler's other political beliefs place him almost always on the far right. He advocated racism over racial tolerance, eugenics over freedom of reproduction, merit over equality, competition over cooperation, power politics and militarism over pacifism, dictatorship over democracy, capitalism over Marxism, realism over idealism, nationalism over internationalism, exclusiveness over inclusiveness, common sense over theory or science, pragmatism over principle, and even held friendly relations with the Church, even though he was an atheist.