Yes, for the beans to cook and heat up evenly, you're going to want to cover the dish with aluminum foil and bake it that way. It also helps to keep down on any splatter that might pop up and over during this time!