Of course there is.
I will quote an example of the py2exe or PyInstaller module of Python that “converts” Python code to executable, or also of most Java to exe that convert Java files to executables – what happens in reality is that a compressed executable is created, that is, your environment is copied into an executable to run.
Following my examples, if you take any Java executable converted to executable and extract it, you will get the equivalent of a JVM runtime, similar to the Python example, and if you have dazzled, some types of obfuscation are very simple to remove, so choose well.