Where required by the AHJ in this area, I've only sealed vertical penetrations, not horizontal. I use fire-rated caulk and leave an empty tube on the project at eye level so the inspector can see what I used. I hope you're not talking about expandable insulation foam, which I don't think is fire rated. I've heard of inspectors making guys dig out silicone and install the proper product.

Dave