No — there is no legitimate code that unlocks every gag. Gags are earned by training them in battle, and full access to the higher tracks is tied to membership.
You may come across snippets of Python posted online that claim to flip membership flags in the client. Those are exploits, they violate the game's terms, and they are a reliable way to get your account permanently banned. Stick to training your gags the normal way.