No. If you transit in CMN, your passport will be stamped in RAK and you clear customs there. Same on the way back, your passport is stamped in RAK (and clear customs) and then in CMN you simply transfer to the international zone. That makes transfers easier