Should I use the action in the plugin’s main file?

Should I use the action in the plugin’s main file?