Is it possible to write the functions in server scripts ..?

I am trying to add the new function through server script. Is this possible …??