Yes Insurance companies run your credit for both Homeowners Insurance and Car Insurance and having bad credit can cause the Insurance company to deny you a Homeowners Insurance Policy.
If you go online and try and get quotes or apply for Homeowners Insurance your credit will be pulled to make the decision and then a few days later you should get a letter in the mail stating the reason they're denying you Homeowners Insurance which is bad credit if you have bad credit.
You need good credit to get Homeowners Insurance but if you can still get car insurance with bad credit but your rates will likely be higher.