Yes. Mold only needs cellulose, water, and oxygen to grow. A wet carpet is a perfect storm for mold growth. Stop mold at the first signs to prevent a colony from taking root.