The wood planks below the roofing material will need to be replaced if it is rotten or heavily damaged. It’s possible that only certain sections need to be replaced  and not the entrie thing. Our roofers will inspect the wood and let you know if it needs to be replaced before doing any work.