Maybe yes.
Those. subsystems like wine, cygwin, interix exist, it is also possible to twist the loader (+ connect the corresponding shared libraries), although in practice there will be a lot of hemorrhoids.
More interesting is another continuation of the topic. Cross-platform standalown module (of course, I mean machine codes, and therefore we are talking about the same processor architecture).
Perhaps such a thing will need a mini installer (changing magic and if the file format for the OS loader is required) depending on the OS. The idea is that the function at the entry point determines (on the fly itself) the current environment and “adjusts” to it. Obviously, the development system (linker and libraries) must "have knowledge" of possible target operating systems.
IMHO the idea is interesting, but he did not move further than theoretical reflections. In practice, interpreters like python, perl are widely used ...