To add to this, the sun will expand into a red giant in approximately 5 billion years, which is likely to consume both Earth and the Moon. This will happen before the Moon is able to leave Earth’s orbit, so it’ll shrink in the sky but odds are it won’t leave the Earth’s orbit before both are destroyed by the expanding sun in the future.
On top of that, the sun is slowly getting hotter as it gets older, so in approximately 1 billion years, the sun will have gotten hot enough to render most, if not all of the Earth uninhabitable for life as we know it.