Dumbledore’s unwilling answer: "Yes. It was for the Greater Good in the end, as a not-obvious way to defeat Tom Riddle. James and Lily did exactly as I planned, except for protecting you by blood-magic. Unfortunately, Frank and Alice survived; but fortunately, they were left unable to raise Neville to be confident in himself. Augusta did an excellent job of ensuring Neville grew up believing himself worthless, and she sent him off to school with a mismatched wand; the lad was in no condition to vanquish Tom Riddle."