EDR, in most cases, cannot completely replace antivirus software. EDR is designed to work side by side with other preventative measures like antivirus software and firewalls.