The sun expanding wouldn't really make the earth go boom. It would be more like putting an orange into your oven.