A code that circulates for this is DECNLR10.
I would set expectations low, though. Club Penguin did not have an infinite money cheat, and codes of this shape were generally either short-lived promotional items or simply invented and passed around the playground. If it works at all, it will be a one-time credit rather than anything repeatable.
As for whether you get banned: using an unpublished code is not the same as running a third-party cheat program, and the former was typically harmless. What actually got accounts permanently banned was the automated bot software that promised coins or ranks. That distinction matters, and it is the reason to be far more worried about a downloadable "money hack" than about a string of characters someone typed into the chat.
If you want coins legitimately, the reliable route was always the in-game jobs, the daily stage performances, and Puffle care — slow, but it does not risk the account.