.
No, that does not work. Adjectives describe their nouns: 'affected' describes 'heroin', and the meaning is that
the heroin was affected by something else. The adjective that you intend is 'affect
ing'-- the 'affecting heroin', which means
the heroin that affects (people). HOWEVER, it is unnatural to use 'affecting' in this way in this sentence, because you are talking about heroin in general--
all of which affects people.
Please use the sentence I gave you.
.