It is extremely unlikely to contract a traditional virus on a PS3 through online play. Here's why the architecture protects you:
While the console won't get a "virus," your account and personal data are targets:
Enjoy online gaming with peace of mind—the console itself is a fortress.