No, it won’t. If the Moon passes in front of or near M45, the image will likely suffer from overexposure, which will affect the overall capture quality. While the stacking process won’t trigger star trails errors due to the Moon’s movement, the overexposure may prevent the images from stacking properly.