As long as you download the file from Microsoft, it’s 100% safe. If you download from a 3rd party or torrent site, it may contain malware or viruses in the installer.