It doesn't necessarily lead to a rejection, but yes, generally if one member of a family is inadmissible for whatever reason—criminality, security, medical, whatever—then the entire family unit would be considered to be inadmissible to Canada.
In the situation of medical inadmissibility, there are other avenues. Individuals can have their cases accepted on humanitarian and compassionate grounds, for example, or be provided with a temporary resident permit.