Free Realms itself was a legitimate, official MMO from Sony Online Entertainment, not a virus. However, some players reported running into problems after visiting the game, which highlights an important point: the risks usually come from unsafe browsing habits rather than the game itself.
To stay safe, download games only from official sources, keep your browser and antivirus updated, and be cautious of third-party "helper" downloads or unofficial add-ons. Practising good security habits will protect your computer far more reliably than avoiding a single title.