So as long as everyone in the same city, county, or state is forced to follow a particular law that's OK. Otherwise it's socialism.
What about the people in one city who all agree that people in that city ought to be able to smoke on their porches, but the state decides otherwise? Are the state people being socialists? Or are the city people being scofflaws?
My answer is this.
There is legitimate government, and then there are Homeowners Associations. And if you don’t understand what I mean, you haven’t dealt with a Homeowners Association.