Depends on circumstances. In an ideal world yes. When consumer and producer of a good get equal opportunity to influence laws, to enforce existing laws and have similar options to choose an alternative consumer or producer.
Then capitalism will work efficiently.