Yes, spray foam comes in either an open cell or closed cell formulation. The open cell is not a vapor barrier, is less expensive, and has a lower R value per inch than the closed cell formulation. The closed cell formulation should be used in applications that are prone to moisture...