Yes, you can use aluminum foil to wrap hot food. Aluminum foil is designed to withstand high temperatures and is commonly used in cooking and baking to cover dishes, wrap food, or line baking sheets. It's important to ensure that the foil does not come into direct contact with the heat source as it can melt. Additionally, while aluminum foil is generally safe for cooking, some studies suggest that it may leach small amounts of aluminum into food, so it's best to use it sparingly and avoid wrapping acidic foods, which can increase the leaching.