Much like Lime- and FrostWire, if you use it stupidly you will get a virus.
If you use the big ol' organ in your skull you won't.
In other words: it's not the programs fault you got the virus, it was /yours./
Yes, some do contain viruses but not every last one.
Besides, if you had a good anti-virus program, you shouldn't worry at all about viruses.