Generally, no — RuneScape itself doesn't give you viruses. As a browser-based game, it doesn't require you to download anything to play (aside from Java, which you need to run it). It does store cache memory on your computer to help the game run faster, which can take up some RAM and space and slightly affect overall performance, but that isn't a virus.
The real risk comes from cheating: downloading unofficial "auto" clients or modified files from untrusted sites can indeed carry malware. The optional downloadable RuneScape client is safe when obtained from official sources. In short, stick to legitimate downloads, and you have nothing to worry about — many players have enjoyed the game for years without a single issue.