Criminal trouble will develop if the drugs are sold. Additionally, it sounds like your friend may have a drug problem and needs to address it. He must stop manipulating the system and get help for his addiction.
I would highly recommend that your friend consult with an experienced criminal defense who is experienced in cases involving the Drug Act and the Pharmacy Act. There way too much missing information that can not and should not be posted on a public website such as this one, nor should any additional details be posted anywhere on the Internet, including social media like Facebook. There is some potential exposure to criminal liability depending upon much more detailed facts. I don't think the likelihood is great but again it is impossible to have a solid opinion without facts that can only be developed in a detailed, private conversation with counsel. There is potential risks for the doctor's writing the scripts as well and investigators might want to talk with your friend. Under no circumstances should your friend agree to talk at all with any law enforcement agent about drugs, prescriptions, prescribing physicians, or dispensing pharmacies. The response, should an invitation come in, should be an unequivocal and unwavering, "I do not wish to answer any questions until I have had a chance to consult with an attorney." If at some point it seems like they don't understand of forgot what was said it needs to be repeated.
My colleagues are spot on in their answers. The short answer is "Yes". Your friend may be prosecuted. Sounds like she was scrpit shopping to get more medication than was medically need. I also suggest that they contact a lawyer who has experience in this area of criminal law.
I agree with my esteemed colleagues...the simple answer is that there are a number of ways based on what you said that criminal charges may result. As this is a public site I would caution against providing any further information. You need to consult with a competent criminal defense attorney as to the possible outcomes. Good luck.