That is definitely true. Legalization would allow access to quality-controlled medication by prescription.
For those who find what is claimed to be MDMA on the black market, information on purity (aimed at reducing potential harm and fraud by black market suppliers) can be acquired through services such as http://www.ecstasydata.org/
Thanks for the resources