Absolutely, and Stalin is absolutely an indefensible monster. But this "worse than hitler stuff" and "worst man in history" is cold war propaganda and as such clouds reality.
Both Franco and the Rwanda genocide killed a larger percentage of their population.
Hong Xiuquan's war killed multiples more people than Stalin did.
Stalin ran his country just like Kim Il-sung and co. Which is obviously deeply evil but not "worse than hitler"
Perhaps out of pragmatism, the cold war US found itself allying itself Franco, Pinochet etc as part of containment. So to get the public on board, certain think tanks decided to do a bit of embellishing to the historical record. Regrettably, the debris from this is still floating around.
Consider the implication of this narrative: the US should have allied with Hitler to fight Stalin. I don't think anyone but right-wing extremist with go along with that.