Yes, you can prepare the filling a day ahead and keep it in the refrigerator until you're ready to bake. However, make sure to drain the tomatoes well to avoid excess moisture.