Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it’s in-use version.
It’s more like it doesn’t actually go anywhere on-disk; only the tag in the filesystem pointing to it changes. I’m pretty sure once the program has an open file handle, it doesn’t care about the path anymore anyway.