No, this is not possible. All of the code for a script must fit in the single script editor at once.
Some people have creative systems where the script retrieves code stored externally (either in the base or on the internet) and then the script uses
eval to run the additional code. However, this technique only works in Scrpting App (not in Automation Scripting Actions), and it introduces a additional complexity and risk.