Source code is the guts of an application that makes it work before it is compiled own, or bundled for interpretation. It is the part of the target file that is written by the user to create what they want.
The position of code (the syntax) is dependent on the language being written in. Some languages require code be in the order it is used (function wise) or it will not compile properly. Others do not require any special order and will compile in any order the code is written. That is entirely dependent on the language itself.
Also coding is not copy pasting.