Yes, it is. Doctors also prescribe cocaine, opium, and heroin, but all under different scientific sounding names of course. And all that is okay. Yet why do people freak out about marijuana? Of all those drugs listed above, marijuana is nothing. Yet all the former are accepted by society but the latter is not? Now that's fucked up.
Granted, I do think that medical marijuana can be administered in better ways than a joint. Find out what works and make a pill or a nebulizer so you're only getting the good stuff that will help you and none of the crap that comes with smoking, not to mention the stigma involved.