Yes, and it is especially easy to assemble spinach pie and freeze it before you even get to baking it! You can take the frozen, assembled pie directly from the freezer and place it in the oven whenever you are ready to bake it.  As for already-baked spanakopita, you certainly can freeze it but keep in mind that the pastry might lose some of the crispiness in the process.