This just sets a bit in the resultung exe file. Visual Basic uses Microsoft's standard linker which is also used for C/C++, that's why the flag is there.
So yes, you can compile it with those settings, but I'm certain that the resulting exe won't run in native mode or in the Posix subsystem.
For more information on those settings you might want to check out information about the PE file format and have a look at the DUMPBIN and EDITBIN tools.