I think Hitler was rather more cynical than that - when he wanted to exploit socialists to achieve his ends he supported socialism. However, after the Röhm purge (AKA "The Night of the Long Knives") most of the socialists within the party were removed (and often killed) - making the Nazis far more acceptable to the rich industrialists and military leaders that Hitler needed support from to get total power.