Yes and no. Malware is an umbrella term for all kinds of malicious software, while a virus is a type of malware able to self-replicate and insert its own code into other software.