Another way to say "Earning money is a good thing" is "It is a good thing to earn money."