Cornstarch and flour do different things in a recipe. However, you can substitute it but it can change the flavor and texture of the pie. If you don't hav e cornstartch in the house, use twice as much flour. So if it's 1 tablespoon cornstartch, use 2 tablespoons flour.