I don't think Marx nor Lenin said it would. However the options are not capitalism or socialism, the options are socialism or extinction. Or call it barbarism.
Just like a cancercell capitalism need to expand to survive even if it kills the host in the process.
Sure you can control the water in the post apocalyptic desert . That way it would adapt.