Ans: Yes, you can use expanding foam around plastic pipes. Now every expanding foam is effective with plastic pipes.  Read the instructions on the label before buying them. Some expanding foams such as Loctite Tite Foam works perfectly with most plastic pipes.