This is a common misconception.
'Malware' is an umbrella term used to refer to a variety of forms of hostile or intrusive software, including computer VIRUSES, worms, trojan horses,ransomware, spyware, adware, scareware, and other malicious programs. - Wikipedia