Indeed, a damaged carpet can be repaired. The safest option is to hire a professional. However, you may be able to fix it yourself. There's no harm in doing it first, as long as you have enough scraps to make a large enough piece for a professional to use if you fail.