Is it safe to wrap food in aluminum foil before baking it?
Not only is it safe but there are entire collections of recipes developed around "foil pack" cooking. Mostly centered around 'campfire' cooking, where one prepares all of the ingredients, wraps them tightly in aluminum foil and places the whole pack in the fire (or oven) to cook the dish.