Interpreting "virus" as "malicious code"...kindof...but generally not by writing a normal program, i.e., you'd be misusing the language in some highly specific way.
This fact alone is going to present a LOT of challenges to anyone just learning how to code in the normal way.
This answer is given because nobody should think it's 100% safe in the wild.
By the way, don't send viruses! That's illegal in most places, not to mention mean!