While spray foam can starve mold its food source (oxygen and moisture), yet it is not ideal to spray foam moldy insulating material. Spraying foam can cause breathing problems at home, thereby adding additional health problems. Also, poor mixing of spray foam chemicals can make insulating material detach from the wall cavities holding it.