Yes. The spray foam also holds moisture between it and the sheathing. I am NOT sold on it.
I have seen some homes that have spay foam intended for use being built . they rolled out building wrap out on walls then put the sheathing on then tipped up. that prob addresses your concern
I do have a bud who has been living in his poll barn for over 20 yrs now.
I helped him put it up back then it was going to be a temp situation . he planed on building a house down by the trout stream.
well at this point it looks permanent .
he originally just had 1/2 insulated and had a air stream in there.
air steam still in there with a ultra high polish to her. the 1/2 is now 7/8.
kind of set up like a 50s holiday in poolside including a small pool.
has a huge movie screen. over time kitchen and bath has moved in to big room air stream has been made in to just a master bed with a bath . actually pretty cool set up. but he is a bit of a eccentric runs in the family I guess. his uncle is a pretty famous arctic explorer.