Custom function question....

Custom function question....

....Is it possible to create a workflow custom function that pulls info from a potential and creates a new record in a custom module when a potential is 'closed won'?

From what I've read, it seems like it should be possible, but I wanted to verify.

Of course I have no programming experience and would not know how to program said function....