It's not strictly necessary, but pre-cooking the apple filling can make for a juicier, more flavorful pie.