I'm not sure what you intend with this. I am using that as a counter example to "laws against slavery restrict freedom", because the person I'm responding to was implying that restriction is inherently good: restricting slavery is generally a positive, but restricting gay marriage is generally a negative. The fact that the same idea in two different scenarios can be good or bad means you can't use it as a maxim.
No, the implication of the post to which you were responding is not that restriction is inherently good, but rather that restriction is not inherently bad.