One concern I would have is that expanding foam can absorb water over time, so it wouldn't be the best way to seal that opening to keep coolant out. Sure, they might say "weather resistant" or "water resistant", but of that opening is in a spot where it can see standing water, you might have problems over time. Better just to get a good silicone or polyurethane based calk.