Yes, aluminum foil can be used for cooking. It's commonly used for wrapping foods to retain moisture and heat, such as when baking potatoes or fish. You can also create a foil packet (en papillote) by placing food in the center of a large piece of foil, seasoning it, and then folding the foil to seal the edges. This method steams the food, keeping it moist. For grilling, use heavy-duty foil to prevent tearing and place food directly on it. Remember, avoid using aluminum foil with acidic foods as it can react and leach aluminum into the food.