You can! You need to install the Hercules mainframe emulator and the freely available MVS 3.8 on top of it. There are compilers for COBOL, Fortran, PL/1 and assembly available. The go to guy on YouTube for getting all this working is moshix:
https://www.youtube.com/c/moshix