You're free to switch your auto insurance to a different auto insurance company at any time and usually there's no penalty for switching auto insurance.
But some auto insurance companies may charge an early cancellation fee if you switch auto insurance companies in the middle of the policy.
You should get back any money you paid too them that's left for the months you didn't have auto insurance with the company.