No. There are no pet cheat codes for Free Realms.
Pets in the game are earned through play, bought in the shop, or granted by a legitimate promotional code that the developers publish themselves. Anything advertised as a "cheat code" outside those channels is either expired, fake, or a phishing attempt aimed at your account details.
If you want a particular pet, check the in-game marketplace first. It is usually cheaper than the risk.