Can i change car insurance providers whilst a claim is being made?

I want to change my car insurance provider as i am paying to much each month in premiums and cant afford to keep paying them. But i recently was involved in an accident and the other party is claiming against me. Can i still change providers whilst this claim is ongoing? or do i have to wait untill the claim is settled?