Yep, given enough forewarning with current technology asteroid redirection isn't out of the question.
Then again, we'll likely get ourselves with global warming first.