It depends on what you are cooking. If you want to prevent the top layer from getting too brown, you can cover the casserole dish with foil or a lid. If you want the top to be crispy, leave it uncovered. Additionally, covering the dish can also help the food cook evenly and retain moisture.