It is possible but the third cocaine charge is the obstacle that makes this genuinely difficult, and being honest about that serves you better than false optimism.
Possession with intent to distribute cocaine is a serious felony on its own. A third offense on that charge tells a sentencing judge a clear story: two prior opportunities to change course were not taken, and the conduct continued. Most states have enhanced penalty provisions for repeat drug offenders that limit judicial discretion and in some cases trigger mandatory minimums that remove probation as an option entirely regardless of what the judge might prefer.
The marijuana possession second offense is relatively minor in context and on its own would likely not result in significant incarceration in most jurisdictions given the ongoing shift in how marijuana offenses are treated nationally. That charge is not the problem here.
The variables that matter most for the cocaine charge are the quantity involved and its street value. Distribution charges based on small quantities are treated differently than charges suggesting a significant supply operation. A small amount at distribution weight that borders on personal use gives an attorney more room to negotiate than a case involving larger quantities and clear evidence of dealing activity.
Prior convictions are almost certainly going to be weighted heavily. A judge who has seen the same person twice before on cocaine charges is not going to start from neutral. The argument that has the best chance of working at this point is a documented, credible commitment to substance abuse treatment through a residential program or drug court if the jurisdiction offers one. Judges who see genuine engagement with treatment rather than just words have more reason to consider alternatives to incarceration.
She needs an experienced criminal defense attorney immediately who knows the local court and has handled repeat drug offense cases in that jurisdiction.