Uh, when two bodies collide they release lots of energy, which heats the objects. That is correct.
Besides that, there are two things I wanted to say
1) Humanity can survive in such temperatures, and even if most of the population dies, the city lights will stay on for some time.
2) I can barely see citylights in that image