To a certain extent if the doctor prescribes it and for a short amount of time. If they get marijuana for illegal purposes then that isn't right. Although if they use it for medical reasons then yes, it is okay.
This would make it easier for people to ask questions and be honest with their doctors. This may eliminate the need for people to defy authority. Although, there may be more drugs sold if people no longer have to be scared about selling drugs. This may open the gate way for people to sell drugs out in the open which would not be good for young kids to see.
What if people get addicted to the drug? What if people make bad economic decisions due to the drug? Yes, it could alleviate medical problems but if the person becomes cured and doesn't stop the drug, then it becomes an addiction. It ruins your brain cells and makes it hard for people to concentrate.