Yes, Esurance should give you a refund for any coverage you didn’t use.
For example, if you paid for six months and need to cancel after four months, you’ll get a check or electronic payment for two unused months of auto insurance. You can speak to customer service at Esurance to find out whether you qualify for a refund.