it'll depend which year the tail lights are from.
early X5s (2000-2001, and maybe 2002) do not have adaptive brake lights, and if i recall correctly, in 2003, the connecters are different, and you may need an adapter. but it is doable.
http://www.xoutpost.com/pdf/X5_Rear_Light_Upgrade.pdf