Yes, you can use aluminum foil to wrap vegetables for cooking. It helps retain moisture and flavor, and can be used in the oven, grill, or on the stovetop. However, it's important to ensure the foil doesn't touch any heating element directly to avoid fires. For non-stick surfaces, place the foil on a baking sheet or use parchment paper instead. Avoid using aluminum foil with acidic foods as it can react and leach aluminum into the food, which may not be healthy.