The answer to this question depends on the insurance company and your specific policy. Generally speaking, if you cancel your policy before it expires, you may be eligible for some type of refund. The amount of refund will vary depending on when you cancel, the number of payments you have made, and if you have a refundable deductible.
Since each insurance company and policy is different, you should contact your insurance company directly to learn more.
Some insurers offer pro-rated refunds if you cancel your policy early. In this case, you would receive a refund, calculated from how many days are left in the policy. Check out this link to learn more about pro-rated refunds. https://www.statefarm.com/insurance/auto/resources/auto-help-center/auto-cancellations-and-refunds
Other insurers offer returns of your full unearned premiumif you cancel your policy early. In this case, you would receive a refund of all the premiums you have paid minus any claims. Check out this link to find out more about unearned premium refunds. https://www.travelers.com/resources/insurance101/passing-on-your-policy.aspx
It is also important to know that some insurance companies will charge you a cancellation fee if you decide to cancel early. So be sure to pay attention to the cancellation clause in your policy before taking any action.
In short, the answer to your question is complicated, and depends on several factors. It is best to contact your insurance company directly to find out if you are eligible for a refund upon cancelling your policy.