Yes in rare cases, which is why typically when a psychiatrist recommends treatment with a drug like that, they typically monitor the patient to see if they suffer any severe side effects.
Just because there’s quack doctors who want to push pills on everyone doesn’t mean all of them are quacks. Any psychiatrist or psychologist who is deserving of their degree will pursue other avenues of treatment before resorting to pharmacology.
Unfortunately, a lot of the public has bought into the lies that pills are cure-alls, and will doctor shop until they get meds.