Yes, you can bake brownies in a foil pan. Just be sure to adjust baking time as needed, as brownies might bake faster in an aluminum pan compared to a regular pan.