No, a file’s location doesn’t affect which program opens it, but it does affect where the program looks for it. If you move a file while it’s open in a program, the program might not be able to save changes to the file.