If the code plug in the new cluster is the same, then it should work to switch plug into the new cluster.
But the dealer can also reprogramm it for you. Because there are much more data than only the km/miles in the chip, maybe this helps
http://bmwe32.masscom.net/johan/299960/299960.html