No your credit score will not be affected by changing your auto insurance or when you shop for auto insurance.
When you shop for auto insurance and get auto insurance quotes your credit will be checked but the inquiry on your credit report will not affect your credit score at all.
So if you want to change your auto insurance from one company to another auto insurance company then you can do so without hurting or affecting your credit score.