Bad credit

Can a person with bad credit score have the opportunity to buy a house ?