Nope, not really. I mean, for one, I'd imagine that living on the moon or Mars would end up leading to a bunch of health issues since we evolved on Earth. Our bodies are made to handle the conditions and physics of our planet, not of Mars or the moon. There are also aspects that I would end up missing about Earth, such as nature. Along with that, being able to communicate with family and friends is not the same as being able to physically hang out with them.
Overall, living on Mars or on the moon would probably do more to increase my suicidality, tbh. I don't even like the idea of living outside of my country that much so the idea of living on Mars or on the moon definitely is not something that appeals to me.