That’s why I wrote “if done right”.
A truly social market economy also has to make sure that workers along the whole supply chain have to get similar rights and treatment as local workers.
Besides that, centrally planned economies (being the opposite to plain free market capitalism), also don’t really shy away from exploiting the resources of poorer countries.
(Looking e.g. at imperialistic China here).