Yes and Christ told the the rich young ruler to sell it all and give it to the poor too.
So Christ touched him where he lived. He couldn't serve both God and Mammon, and right then and there he chose Mammon.
Christ did not tell Joseph of Arimathea or other wealthy men the same thing -- because they did not put their God to the test in the same way.