I agree this is a good example.
Another one is weapons selling companies.
But even then a strong case can be made that without those companies people would still satisfy the demand via black market causing same harm bit without money benefits to society.
So still it is better with companies than without.