Baking soda is an odor neutralizer and can absorb odors around it when you sprinkle it on your carpet. You can then vacuum it up to successfully remove some carpet smells, but only some. Baking soda will not kill mold, so a mold problem will continue to cause unpleasant smells.