Yes, yes, yes, and yes, especially if you opened the file with admin access to the files/folders/drives allocated from your c:\partition or whatever you name it lol, code\ partition. Code can be converted and programmed to duplicate or replicate i.e., “else:if” and coded to run via each startup even if you were to take safety precautions and delete %appdata%%appdata%
and such; theresuch.
There are also exploits that can run and save via random access memory integrity, biosBIOS/uefiUEFI root privileges, and even guest access (which are a little more harder to maintain or execute) unless.
Unless it’s as mentioned to be a persistent treatthreat then you shouldn’t be as concerned.