No! Aluminum foil will ruin your dishwasher's heating element and make it stop working. Always remember to remove aluminum foil before you run a cycle on your dishwasher. If you don't have time to take it out, just add a little bit of vinegar to the wash cycle and let it run through as usual before putting in any dishes or silverware that need cleaning.