Yes you can prepare and make a squash casserole dish or any casserole dish a day ahead of time and then put in the refrigerator until the next day or whenever you plan to serve it and it will be just fine.
You can just place the Squash Casserole dish or any other Casserole dish into the oven and reheat the Casserole when ready to eat.