If you already have a self sufficient colony on the moon, but don't on the earth, when the catastrophic event occurs the moon will still be self sufficient.
The technology developed to live on the moon may allow it to be rapidly deployed on Earth, saving a large number of people, but if that technology doesn't exist then you're stuck