It depends on the overall state of your roof. If only a few shingles here and there are missing, cracked, or otherwise not 100% perfect, then you can probably just repair these areas of your roof. If most of your roof is in disrepair, and if your roof is older, then you probably need the whole thing to be replaced.