If your roof is flat, you can absolutely replace the entire roof. However, if it has a steep pitch or other structural issues with the rest of the house's framing system, this would be an extremely expensive repair and should probably not be done on its own—instead, involve professionals to fix these major problems first!