Yes, sorta.
Since you are talking about a production box, I would make sure you eyeball the script to make sure it is doing what you expect it to.
The script will first delete the user defined functions and then create them. By creating the scripts on the production box, you will have effectively copied them from the other machine.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom