eating carrots provides vitamin A beta carotene which is good for vision but if you are asking if you can go from needing glasses to 20/20 vision from eating a bunch of carrots I would offer to sell you ocean front property in Kansas.
eyesight is unfortunately genetic.