Yes, it should fit; the two radios look identical. However, the XM option uses a separate tuner and antenna. It's not built into the head unit. You'd need to get the head unit, satellite radio tuner, and antenna to make it work in your vehicle.
I have a 07 Hyundai Sonata w/ Infinity AM/FM Radio/6-CD Changer/MP3. I would like to get one of the newer 08 stock radios with XM. I was wondering if the 08 radios fit the 07 Sonatas?