Yes, he does. In his essay "The Gospel of Wealth" (1889), he wrote: "... the amassing of wealth is one of the worst species of idolatry."
Although he is considered one of the richest American men to have ever lived, he himself was a philanthropist, believing that what was gained by society should be given back to society as well.