Yes, aluminum foil can deter squirrels from bird feeders. The shiny surface of the foil may startle squirrels and make them hesitant to approach the feeder. Additionally, the crinkling sound of the foil may be annoying to squirrels.