Yes you can still get car insurance for your car even when you have bad credit.
The car insurance company will run your credit and see what your credit score is and then they use the credit score to set your insurance rates and decide on what your monthly or yearly car insurance premiums will cost.
The lower your credit score the higher the cost of insurance will usually be and the higher your credit score the lower your car insurance rates will usually be.
So having bad credit won't effect your ability to get car insurance but having bad credit will make your car insurance more expensive.