Yes, it can certainly be done well or poorly.
A “well” example: banning tobacco sales to kids.
A “poorly” example (IMO): requiring licenses for beauticians.
The French bookstore case can certainly be argued logically on both sides. Is our society best served (in every sense of the word) by a monoculture of highly efficient megacorps, or an array of smaller businesses?