Yes.

Check the UDF forum for a number of ready made solutions.