Yes, some expanding foam is designed to be waterproof. Certain products are even made specifically for building ponds, fountains, and other outdoor water features. For added convenience, those waterproof expanding foams are also made to withstand harmful ultraviolet rays to ensure maximum longevity and durability.