Yes, all states have laws. It is the content of those
laws which
determines whether or not the state is a free and open society. One
may have a free and open society that is not an anarchy.
If the country has free and fair elections for its leaders then it is
a democracy. A law made by democratically elected leaders that doesn't
get in the way of free and fair elections cannot be undemocratic. Just
because you don't like the law doesn't mean a majority of the
electorate agrees with you.