The Minecraft file itself is safe from viruses and malware. However, there are skins, mods, and other user-generated content that can be downloaded to enhance your Minecraft universe which could be infected with malware. I strongly recommend that you use an antivirus program to scan any of these files before downloading them to your computer.