Yes, aluminum foil can be used for roasting vegetables. It's a common practice to line baking sheets or roasting pans with aluminum foil to prevent sticking and make cleanup easier. When roasting vegetables, you can place them directly on the foil or wrap them in a foil packet. This method helps to retain moisture and can enhance the flavor by steaming the vegetables. However, it's important to monitor the vegetables closely to prevent overcooking or burning, as foil can conduct heat quickly.