If the shot of the moon was taken so the sky was black ... a pure moon shot, and if the place the moon is going in the new picture will have nothing in front of the moon, you often can place a small square containing the moon as a new layer into the shot, and set the blending mode to screen. Can work very well, instant, no mask required.
Sometimes the color of the dusk sky shows through in the moon a little. This affect may be acceptable - it will appear similar to how it would have looked if you had used a double exposure technique on film.
If you don't like that affect, you can add a mask to the underlying layer, and paint black where the moon is, preventing the underlying layer from showing through.