Does the value of the car I buy have anything to do with the insurance?
Yes, of course. If you buy an Audi, then the amount of money you will pay as premium is certainly going to be more than what you will pay for a Maruti Alto. After all, the cost of repairs or replacement is more.
Since a higher value car will generally have higher priced spare parts, the premium is higher.