When it comes to rodents, prevention is crucial. Stopping them from going into the house is considerably easier than having them leave. Spray foam insulation accomplishes the purpose of prevention by efficiently sealing the home. Spray foam acts as a deterrent. It won't work if the area is already infested with rodents.