Q:

Is it true that you cannot get a virus on a Mac

Answer

That is not true. Apple computers have less vulnerability to viruses in their operating systems, but they can still be infected.