Aluminium is a metal, so yes, the foil version of this is also a metal.
However, i can see your confusion, most people see metals as hard and very solid. If it helps think of aluminium foil to aluminium as a bit of paper is to wood.
You can bend paper, however not wood, that is because (put aside the chemical changes etc) that paper has considerably less layers of atoms, this is the same for aluminium foil.
Hope this helps =]