Yes, you can prep it early. Prepare the gratin but don't bake until right before serving. You'll need to increase the bake time to about 45 minutes to get everything nice and hot. Cover with foil if the cheese starts to get too dark on top. Casserole leftovers are GREAT!