Not automatically, that's not how history nor capital works. If a crisis happens that threatens the rule of capital, be it proletarian uprising or catastrophic climate change, bourgeoisie aren't simply going to keel over and watch themselves lose their position, they're going to try and solve the crisis by any means necessary to preserve it.
If there's no solution found by capital because, for example, agriculture has become impossible and there's mass starvation with very little that can be done about it, then the question of mode of production will be irrelevant since humanity as a whole will be in the process of dying out.
