An analogy has been made by the Church Fathers that could apply to this question:
When a branch is cut from the vine, no new fruit is produced, but existing fruit can still ripen.
As for people who were never in the Church (many by no fault of their own), generally the Fathers tell us to be content to leave this to God.