Yes — in The Sims, two codes cover it.
Open the cheat console with Control, Shift and C together, then type kaching for 1,000 Simoleons, or motherlode for 50,000. The second one is the one people actually want, and a few repeats will fund whatever you are building.
Bear in mind these belong to The Sims series specifically, and cheats have changed or been removed across the various entries and console versions. If a code does nothing, check which game you are in before assuming you typed it wrong.