I suppose it would depend on the inhabitants of whatever planets were left. If things like extreme cold, radiation, and photosynthesis aren’t important for the plant life, or animals there, it could be a temporarily livable place. We know of at least one organism that can survive similar circumstances. Russia claims to have found alien bacteria on the exterior of their space station…
To me, short answer is possibly.