To add upon your comment, the moon could also act as an interplanetary shipyard. With the low gravity and stablity, as well as proximity to earth for raw materials and man power. Assuming it isn't completely automated.
Iirc, Isaac Arthur (I know him as a sci-fi YouTuber) has done numerous videos on how we could become an interplanetary/interstellar species. One of those videos covered the use of the moon to those ends.