Yes – insurers are not legally required to provide car insurance to anyone who requests it, though it’s rare for someone to be denied cover.
Among the reasons an insurer might deny someone cover are licence cancellations/disqualifications, drink and/or drug driving offences, criminal convictions (e.g. for insurance fraud) or an adverse claims history.