Yes, like the from __future__ import
line the # coding
line only ever applies to the file it is placed in.
Python uses it when compiling the source file to bytecode, and you are free to use different encodings for different source files should you so wish.