Beyond the energy-related benefits, proper attic insulation lowers the risk of ice dam formation on your roof ... spray foam, it covers the joists and holes around them, preventing thermal bridging.