If your well is capped, it should not be a problem. If your lawn is close to running water, you should be careful. Fertilizers work as well on algae and similar unwanted vegetation as on grass. So if the fertilizer gets in the water, and it's possible that it does, you might have an unpleasant surprise.