Yes they can. Mac computers can get viruses just like windows computers can.
Apple computers now have a tutorial on there websites stating how to remove viruses from their apple and mac computers.
Basically any computer can get a virus if someone writes the virus for it.