Yes, but you need to check the CD drive part number first.
Take out the CD drive assembly and flip it over. There is a square label on the underside with text in the format "KSM-440xxx". If the "xxx" is the same on both drives you can exchange them directly. For example if both are KSM-440ACM you can exchange them.
If they are different, then I can tell from experience that you replacing a KSM-440ACM with a KSM-440BAM drive works, but the latter is slightly larger. You'll have to use snippers to remove some plastic around the perimeter of the plastic case that sits over the drive. It's pretty easy to do.
I would imagine the opposite is true (putting a KSM-440ACM in a KSM-440BAM console), but I haven't tried that.