I guess it would depend on whether or not the virus has a chance to encrypt the drive before the antivirus can act. Once your computer is infected, it is already too late because no antivirus would be able to defeat the encryption. But if the virus is detected early enough, the antivirus could delete it before it starts encrypting your files.