Yes. Computers that are disconnected from the Internet will not be able to receive updates, but all the protection components for hard disks, removable media, and email will continue to operate.
Important! It is not only through the Internet that malware can infiltrate your computer. That’s why you need to regularly update the installed software.