Guilt by association is a fallacious form of argument. It is illogical argumentation. Anyone who says, "All Muslims are terrorists and hate homosexuals and want to murder homosexuals because Islam teaches Muslims to use terrorism and murder homosexuals," is committing a genetic fallacy, fallacy of composition, and guilt by association. Their argument is wrong and illogical but that doesn't negate the fact that Islam's most trusted sources do teach those things.