Yes he did, but only the socialists that weren't loyal to the NAZI party... Unlike it is here in America where there are essentially 2 political parties where one supports socialism (democrats, progressives) and one very much opposes it (republicans, conservatives), Germany had several political parties/movements that embraced socialism that were on the left, the right and the center politically. Not long after gained power he outlawed all other political parties and political organizations.
Hitler's NAZI party believed the world needed to be saved from communism, capitalism/democracy, and the Jewish race.
"Herr Hitler has built up a force estimated at about 30,000 armed men, but he is keeping them in the background and is for the moment concentrating on trying to convert some of the less stable elements of the working classes in the Bavarian towns to his National Socialist programmes."
--August 1923, Morgan Philips Price, the Daily Herald
Hitler despised communists, democratic socialists and any socialists who weren't national socialists (aka NAZIs).
.