The proximity of the moon during its orbit certainly does have an effect on the likelihood and severity of an earthquake. This observation does not require being a rocket scientist. The moon is responsible for the ocean’s tides. The earth beneath us behaves a lot more like liquid than most realize. It becomes more apparent during an earthquake.
Jupiter also affects Earth's tides.