Would you judge someone by their association with a person you know to have a less than attractive lifestyle? i.e. drugs, alcohol, promiscuity, etc.

I have found myself doing it and I do not like the way I see myself… however valid my reasons are for judging the person I already know.