Yes, homeowners insurance covers septic tank damage from covered perils, which are sudden, unexpected events. Septic tanks fall under dwelling coverage if they're attached to your home. Separate tanks may be covered under other structures coverage instead. In both cases, coverage is subject to policy limits and deductibles, which means your insurer will only pay up to the set cap for repairs or replacement.
Coverage limits and definitions vary, so check your policy details.