You mean in the future? We can’t do go to live on another planet now, but we may be able to have another planet to live on in the future. However, our ability to sustain ourselves on another planet would have to be considered, such as where we would get our food and water. That seems to be the hardest part. The best alternative would be to remain where we are and to try to stop our world from ending.
Escaping to another planet is in the realms of science fiction! There aren’t any other habitable planets in the solar system to which we could escape, without having invested huge resources in creating an environment we might be able to live in. No, in the case that something was about to happen that was clearly going to bring life on Earth to an end, I think that there would little that we could do about it!