My only trip to Marrakech was decades ago and in June--plus before climate change really kicked in, so I have no experience to call on here. I think we had a day around 120F. I think Morocco has a couple of climate zones, one much cooler than the other in winter, so it would be smart to research likely temperatures (and I guess also average precipitation) in any area you are thinking about visiting. A first step can be the Wikipedia entry for each city. There's usually a colorful climate chart in the Geography section. It will give you average high and low temperature, precipitation stats, and often info on hours of sunshine. Here's Marrakech: https://en.wikipedia.org/wiki/Marrakesh. It looks really good to me, and I'm not even from Minnesota!
I think average monthly temperatures have their limitations. They don't give you too much of an idea what conditions will be like when you leave your hotel at 9 AM or so, or as you're walking back there after dinner. I like that actual, historical, day-by-day temperature graphs provided on the website timeanddate.com. I usually look at the most recent five years' data for the appropriate month. At the least, it is helpful in creating a packing list.
Marrakech weather -- January 2025
Use the pull-down box for info on other months/years. Use the Search box at upper right to hop to a different city.
I'd definitely also go to Fes.
It might be easier to fly from Morocco up to Europe rather than traveling by ferry. There are quite a lot of flights from cities like Fes and Marrakech, plus lots more from Casablanca (not otherwise really recommendable).