It didn't prevent it, but the lack of it sure contributed greatly to it all.
The biggest single example: the exempting of the four largest investment banks from the previous 12-to-1 leverage rules, allowing them to leverage up to 40-to-1, thus greatly exacerbating the fallout and causing further follow-on crises.
That, among many, many other things, would not have occurred without those IBs being exempted from previously-existing regulation.
Do you really believe non-regulation will be the panacea for all these ills?
Somalia is pretty unregulated. Maybe try your luck there.