Yes, you can bake a pie in an aluminum cake pan. Aluminum conducts heat well and promotes even baking. Just make sure to adjust the cooking time and temperature accordingly, as aluminum may heat faster than other materials.