Depending on the insurer, the cost of car insurance will vary due to a number of different factors including the type and age of the car, your age and your driving history.
Each company is different, and may place different premiums on perceived risks, so be sure to do your research.
Having a good driving record will often mean you are eligible for a lower premium. However, if you have had accidents in the past, or been fined for speeding or any other offence, be honest when the insurance company asks. Being untruthful might catch up with you if you need to make a claim and the insurer refuses, based on your failure to disclose your record.