No it doesn’t, the system will back up whatever is on the file system. The computer anti-virus is responsible for checking during file access. Backups are, however, not affected by any virus infections. Even if a backup happens after an infection, you would simply restore the required files to backups that were not yet infected.