The short answer is yes. Where is the home though (in terms of climate).
The potential problem with your interior foam option is that the outer edge of the stud of sheathing because much colder and can be location of the condensation which creates the exact opposite effect you are going for.
You have also changed the way the wall can dry out with interior foam. If the bulk of the moisture in the air was from the home, that isn't as problematic.
The potential problem with your interior foam option is that the outer edge of the stud of sheathing because much colder and can be location of the condensation which creates the exact opposite effect you are going for.
You have also changed the way the wall can dry out with interior foam. If the bulk of the moisture in the air was from the home, that isn't as problematic.