Whether an MMORPG can give your computer a virus depends largely on how it is built. Games with chat features can potentially expose players to malicious links or files shared by others.
However, titles protected by security systems like GameGuard or similar anti-cheat and anti-malware measures are much safer. Downloading only from official sources and keeping your antivirus updated are the best ways to stay protected while playing.