Using aluminum foil in ovens is not harmful. Again, be careful while using it, the foil must not touch the heating elements or the walls of the oven as there are chances of burning in it.