No, there aren't any working cheat codes for Armies of Gielinor. The game runs an updated hack shield that blocks hacking attempts on its servers, keeping both the campaign and multiplayer protected. So your best approach is simply to play fair and enjoy the game as intended.