That is part of how research is conducted, and it's justified by relying on the concept of informed consent from research subjects and a requirement that the distribution of the risks and benefits of research are appropriate.
CNN: Exploitation or salvation?