Encrypted files are encrypted files. Linux will not help/.
But using Linux would reduce the risk of getting infected, to begin with. Note that the target vector is an “exe” (executable) that would require Wine to run on Linux. And WINE by nature would limit the infection to a sandbox: you wouldn’t lose any of your regular files to encryption.