No. Playing through the official website or the downloadable client is safe for your computer — neither installs anything harmful.
The real risk is elsewhere. Scam sites impersonating RuneScape, fake "gold generators" and offers of free membership are common, and those are what actually infect machines and steal accounts. Keep to the official domain, and be extremely wary of any file claiming to give you an in-game advantage.