Capitalism is NOT a moral system. It is an economic system.
That means good and bad things can occur during capitalism. Capitalism does not cause or prevent bad things from happening. That's up to the moral character of that population.
You judge an economic system by the quantity and quality of resources it produces. That's it.