No. The cheat codes in The Sims 3 were built in by the developers precisely so players could enjoy them.
Open the console with Ctrl + Shift + C, type what you need and carry on. There's no penalty, no ban and no risk to your save — the only thing you might lose is the sense of having earned it.