It depends. If you damage a carpet in your unit that belongs to your landlord, the liability coverage in your renters insurance may pay to repair or replace it.
However, if you own the carpet and damage it yourself, your renters insurance likely doesn’t cover it.