Assuming you mean the classic NES Super Mario Bros.—there are no traditional cheat codes, but several well-known tricks and glitches exist:
Note: These are exploits, often frowned upon in competitive play. They're for exploration beyond intended gameplay. The most rewarding experience is playing fairly.