No, it's not that simple. Scandinavia has had a pretty good run with socialism. But Norway does the old college-educated trick of investing 10% of it's oil income. And Sweden has a much more diversified economy. In South and Central America, what we have are dirt poor countries with enormous export income. For sixty years the wealthy of these countries have been siphoning off the export income to make themselves rich at the expense of everyone else. When a charismatic demagogue steps up and offers to make you feel as rich as the countries export bank account suggests you should be, what are you supposed to do? Politely decline and tell them to invest in infrastructure and a rainy day fund?
Socialism in the extreme is a hazard to stable government. But so is capitalism, federalism, militarism, and any other -ism.