Make sure that MK4 is a early one (12-02). If it's working good en runs fine with new software it's of course no problem.
But you can get troubles in the future. Maybe you must search for a MK4 from 2004-2005.....
It's weird in the first place; a '02 MK4 in a '04 X5....