The train is fine, but it does require a change. Depending on where you stay in Rabat you will need to deal with a local taxi which can be a very very painful experience when they realise you are a newbie.
While I'm a big fan of public transport and immersing yourself in a destination doing it heavily jet lagged is no fun. Maybe ask your accommodation if they have a driver who can collect you from CMN.