No, there isn't a code that unlocks a dragon in Free Realms.
Dragons aren't something you can summon with a secret password, so if you see a "dragon code" circulating online, it's almost certainly not real.