Yes, you can use aluminum foil in a toaster oven, but there are a few precautions to take. Make sure the foil doesn't touch the heating elements, as it can cause a fire hazard. It's also important to use heavy-duty foil to prevent tearing and melting. Additionally, avoid placing aluminum foil on the crumb tray, as it can interfere with the toaster oven's airflow.