My tools are still sticky from that foam job, so I skip it now
Most guys swear by spray foam for air sealing, but I don't buy it. On a retrofit, the foam glued my tools to the floor when it oversprayed, and we spent an hour chiseling them free. From then on, I use caulk and batting for gaps. It takes longer, but no surprises. My crew thinks I'm nuts, but I've never been stuck since.