Sure, they were more prosperous
on average, but the poor were much more worse off than the poor in rural areas.
It's also impossible to say whether the prosperity was due to the free market and lack of regulations, the industrial revolution and development of steam power or the rise of the middle class and their increased free time/income.
I suspect that mostly it was technology, similar to what's happening in developing nations right now, rather than any free markets.