I searched but couldn't find anything on this topic.

I have a chance to get a free ABS module from a junk yard. I'm good friends with the owner and he has a 00 audi A4 and a few passats and i was wondering if i swap the module do i need to take it in to the dealer to code it in or?? Let's say that none of them match my module part number what is the next step?
THANKS