No planner ever means for their plan to be dystopian. On the contrary, the planner likely has nothing but the best intentions. But intentions don't make their plan non-dystopian.
This is something I always highlight. Grab your standard dystopian sci-fi, check the back history and realize that someone thought that something very much like it was a Grand Idea. Implementation details got in the way, sure, but damn, this system is so fine that hardly anyone could object, and you know what to do with people who object to Utopia.
While I agree with the spirit of your comment, in practice it wouldn't really be fair to blame Marx for Stalin and Mao.
The communist manifesto is a very reductionist view of economics that lends itself to false oppressor class/oppressed class narratives. Large scale death (not just Stalin and Mao but Pol Pot and many others) follows fairly easily from that narrative as the oppressed class can do no wrong.
Dystopias for some are often utopias for others. I mean Mad Max Fury road looks bad for most, but for Immortan Joe that system was sweet as pie.
Now if I could only remember what road it was that my mama said was paved with good intentions...