Yes, your macOS is well equipped with built-in technology for antivirus. It is known by the name of XP protect and allows for detection based on signature and removing the malware.