My basement has been flooded for almost a week now. Will I be able to save the carpet?

Most likely not. If the carpet has been wet for less than 48 hours, and the water isn’t sewage based, the carpet can usually be saved. But if the damage is from sewage, or the carpet has been wet for longer than 48 hours, chances are that the damage is irreparable and the carpet will need to be ripped out and replaced.