Yes, you can use aluminum foil to wrap rice for cooking. It's a common practice that helps to steam the rice evenly, keeping it moist and preventing it from drying out. Ensure the foil is food-grade and seal it properly to prevent any leaks. However, avoid using dark-colored or non-stick aluminum foils, as they may react with acidic foods or release harmful fumes at high temperatures. Always monitor cooking times and temperatures to prevent burning or overcooking the rice.