Humanity will suffer massive population decline for sure, but we have spent thousands of years living in deserts and artic conditions so species survival is pretty much guaranteed no matter how terrible it gets.
It is unlikely that modern technology will be retained though. Just too many interconnected parts spread across continents to survive a mass population decline.