In most cases, yes. Accidental ingestion of a foreign object, toxin, or poison is typically considered an "accident" and covered under both Accident Only plans and Illness and Injuries plans.
However, pet insurance will not cover an incident that is considered intentional, a recurring issue, or due to improper care/negligence.
And remember, there may be a waiting period for accidental injury coverage.