To illustrate just how significant the perturbation from the earth can be, consider a non-nominal lunar orbit insertion burn.
If the burn doesn't happen at all, you come back home on your free-return trajectory (assuming you were on one).
If you burn too long, you impact on the near side a half orbit later, just as you'd expect. The astronauts watched the clock, ready to push the manual stop button if the computer didn't stop the burn as it should.
If you burn just a little too short, you'll go into an elliptical lunar orbit with apolune on the near side. Again, just as you'd expect.
But as you decrease the burn time further, something interesting happens. Although the apolune continues to increase, the perilune also decreases. There is a range of burn times, all less than the nominal time, that can result in lunar impact within a single orbit. The cause of this decrease in perilune is the perturbation from earth's gravity at apolune on the near side. You're at a higher altitude, increasing the earth/lunar gravity ratio, and the orbital period also increases, so the earth tugs on you for a longer time.
Apollo had emergency "bailout" procedures in case a dangerously non-nominal burn had ever occurred.