I think the rich can be good, for a given value of “good”. If good is defined as a lack of self-centeredness, then improving the quality of life for the greatest number of people can be considered good.
Good can be complicated. If one uses their wealth to cure disease in the jungle, but in the process upsets the ecosystem to the point where the people are now starving to death, was good actually done?