Almost certainly not. Membership codes for Free Realms were single-use and tied to specific promotions, so anything you find on a video site has either been redeemed already or was never genuine.
Beyond that, Free Realms closed in 2014, so there is no account left to apply a code to. Any page still offering them is either long-forgotten or actively trying to harvest your details.
If you are after the same kind of game, Wizard101 and Toontown Rewritten both offer free-to-play tiers with optional paid membership, and their codes come from official channels that are still maintained.