Um no. With NT and above (that inclodes XP) it may work or not as all
of them were designed to run stuff in semi-isolation and indirectly connected
to physical hardware.
So when I say DOS, I mean DOS 3.3 though 6.22, Windows 3/3.11 and win95
with a maybe on win98 (early).
Most of the later "dos windows" are just flaky enough to not behave
well even though they run doom fine.
Welcome to PC world.