I noticed my attic has a few recess lights just sitting in attic insulation and I was planning on adding a new receptacle via my attic ceiling. Do you recommend adding some sealant around the electric fixture or is it required by code in any US states? If it is recommended/required, could I use a Duct Seal Compound (putty) such as this one: RectorSeal Duct Seal Compound
I'm thinking such sealant would go where the wires enter the electric fixture. A putty like this could at least be removed where some foam products I've seen look more permanent.