Yes-If the damage is not too extensive, you can remove the source of moisture and the rot will stop spreading. After having the damaged area removed, you can apply a fungicide to prevent wet or dry rot.