No. It offers no food source nor or nesting materials. Although spray foam shouldn’t be used as a barrier for rodents, it is an ideal way to seal up cracks or holes in the foundation of your home to prevent mice or rats from trying to get in.