Yes you do that if you want to update the list of entity actions. However I have to have all my actions in the main script because having the actions in a separate script and including it in my main file stops the action being displayed in the action list.