Do homes have to be wrapped before vinyl is put up?

My house is a modular home,on a permanent foundation, if that matters, and I noticed that under the vinyl, it is just plywood. I thought homes had to be wrapped with that plastic material, to keep out moisture and pests and wind. Also I noticed a lot of those little nails with the green plastic things on them are all over the roof, Aren’t those for the tarpaper?