Yes it is possible. Set up the udf on the customer master, and then a script in the post validate event on the customer field in the sales order our invoice header. If you need help with the script, give me a call.
EDIT: Or, just do what @DanBurleson says. He's a pretty smart cookie. :)