Yes, a doctor may do this. Doctors are not charities--they are not required to take patients whom they believe may not pay them. They are also not obligated by their professional oaths or the law to treat anyone and everyone who comes to them. If  a doctor believes that your family's payment history makes you a bad risk--or simply makes him not want to deal with anyone from your family--he can refuse to treat you.