Can macbooks get viruses?

so i was in the middle of playing a quiz on sporacle and right in the middle it made a beeping noise and said i had a virus
8 answers 8