Ans: The expanding foam which I recommend to fill the gap around a pipe, is very effective in pest control. Mice can not get through the expanding foam. Polyurethane-based expanding foam is best to prevent mice entry at home because it is very hard to chew.