Most carpets damaged by water will likely have to get removed and replaced. It depends on the severity of the damage and the category of water.