Short answer: no, don't go to the Marrakech area yet.
I had a very similar dilemma about visiting Kathmandu a few days after the 2015 earthquake. I did go there in the end, but only because I couldn't find any other way of getting out of Bhutan before my visa expired. I spent a little over 24 hours there. I'm guessing the situation in Marrakech now will be very similar to Kathmandu back then. The following advice is based on my experience there, and also being familiar with Marrakech and the High Atlas area.
Most tourist attractions will be shut. Many of those hotels, cafés and restaurants that are structurally sound will have been repurposed to help aid workers and people rendered homeless. Others will be closed because their workers are needed elsewhere, or are injured or missing. Many roads will be impassable due to debris, collapsed bridges, and so on. There may be problems with the water and electricity supplies, food and fuel shortages, and diseases like cholera or typhoid may start appearing. There will very likely be significant aftershocks which may bring down further buildings, though probably not by October.
If you have a specific relevant skill, for instance if you are a doctor and can speak Moroccan Arabic, then your presence may be valued. If not, the small amount of money you inject into the local economy – and it will only be a small amount as so much will be closed – will not outweigh the inconvenience you cause simply by being there. In a month's time things may be different, but not yet. Exactly when in October your trip is will be relevant. The start of October is not very far away.
If you really can't avoid being in the Marrakech area in the next few weeks, try to rearrange your plans as best you can to minimise the time you're there. Other parts of Morocco will probably welcome you and the money you spend, and are well worth visiting. (And quite honestly, I reckon Fes is a much more interesting city than Marrakech anyway.)
Be prepared not to be able to find any accommodation in Marrakech, even if you have a recently confirmed booking, or not to be able to reach it. A big modern hotel in the New Town around the station is much more likely to be open than a small hotel in the Medina. Make sure you have food, water and cash with you when you arrive, so you can be self-sufficient. Above all, if you keep out of everyone's way and minimise your expectations of actually doing anything, you may be able to have a safe, interesting and thoroughly unforgettable trip. But it would be better all round not to go.