Yes, viruses can damage files. A computer virus is software that replicates itself after infecting files or system folders on a device or network router. Some viruses can destroy files, while others can damage or even corrupt data files.