Can we edit the PWF script

Hello,
I would like to change the script of the Publication Workflow in our Intranet server which is totally without an internet connection. Is that illegal or legal?