Is expanding foam a reliable animal barrier?
All by itself, expanding foam cannot be trusted to keep out rats, squirrels or raccoons. The rodents belong to a family that includes the beaver. They can bite through things that would break human teeth. Once one of them is into the attic and a raccoon happens by and smells food at the hole in the cured foam, the raccoon easily removes the rest of it.