Exactly there’s a “guilty by association” fallacy here.
1. You want the government to control production of some resources.
2. Stalin controlled production of some resources
3. Stalin killed millions of people
4. Therefore, you want to kill millions of people