Mothballs do not absorb odors, such as paint smells, but they can prevent musty, damp odors caused by mold as they can soak up liquid and prevent mold from growing. You want to take care when using them, however, as the chemicals that work so well to prevent pests can also leave behind their own scent.