Willingly participate in a sociological study

Would you willingly participate in a sociological study, like the Stanford Prison Experiment, that could potentially put your health and safety at risk, but had the potential to help thousands or even hundreds of thousands of people? Explain the code of ethics for social research and defend if you think it is too restrictive and would prevent quality social research? (CSLO 3, USLO 1.9)