Yes, much of the reason drugs even have an effect is because receptors for them already exist in the body. That's also the reason why they can be so dangerous; normally endogenous signals are regulated by the body, but externally administered substances are often not. Physical dependence is the body's self-regulation trying to compensate for the presence of external substances that it can't downregulate; a sudden lack of the substance may cause withdrawal symptoms as the body takes time to adjust back to normal. These withdrawal symptoms can be fatal (such as in the case of benzodiazepine withdrawal, or indeed opioid withdrawal). Also, external substances can trigger receptors or permutations of receptors that don't naturally occur as frequently, as strongly, or at all, resulting in undesirable or even potentially fatal effects. Small changes even to substances that are normally unproblematic can nonetheless change their effects significantly enough to cause a problem, as illustrated by the submission.
(Side note: I don't know what's so special about prescribers when most of them don't even fully understand the substances they're prescribing. It's possible that fully educating myself about what I'm doing might actually be better than having blindly accepted a prescription for it, at least in some hypothetical future where this stuff can even be prescribed at all. I guess some people associate illegality automatically with immorality/irresponsibility.)
In case of these designer drugs we changing and appending the original naturally occurring molecules. It’s similar to what the pharma industry does to be able to sell with exorbitant prices, changing and appending the working molecule to get fresh patents.
1. https://en.m.wikipedia.org/wiki/Opioid_receptor
2. https://en.m.wikipedia.org/wiki/Cannabinoid_receptor