Of course. MP4 files can be infected with viruses or malware codes. Almost all types of files can contain viruses and malware codes, but only executable files can activate and spread malware.