Yes, you can. Preheat your oven to 400 degrees, remove the loose outer skins on the whole bulb and cut off the top exposing the garlic cloves inside. Place foil on a baking sheet, place bulbs inside, drizzle olive oil on top and bake with a tight seal for 30-60 minutes, checking after the first 30.