Yes it is safe to use aluminium foil in the oven. You can use the same to line the pan in place of parchment paper.