Yes, you can use aluminum foil to wrap vegetables for cooking, particularly for methods like grilling or baking, as it helps retain moisture and prevents the vegetables from drying out. However, for storage, it is not recommended to use aluminum foil as it can lead to condensation and promote bacterial growth. Instead, use airtight containers or plastic wrap for storing vegetables to maintain freshness.