Laws limit our freedoms, so by your logic, any society with laws cannot be free. Any exercise in organizing groups of people necessarily involves ceding some amount of individual freedom in order to align ones self with the interests of the group.
Any society with laws has already started down the path to socialism. Those that use capitalism have simply not gone the distance.
There is no one perfect system. Which system is best depends on the goals of the group. IMHO the best systems are hybrids which are agile enough to adapt to the changing needs of thier populations. The worst ones exist where any social/political/economic system is valued dogmatically making it difficult to adapt when necessary.