Yes. The fiction that sugar is somehow equivalent to hard drugs has continuously been pedaled without any basis in reality. Opioids have measurable and easily observable psychoactive effects and cause physical dependence. They limit one's ability to function as a normal human if consumed on a regular basis and an overdose of opioids can result in instant death. Even if you claim that eating sugar is "as addictive as cocaine" as the catch phrase goes, sugar lacks the power to cause you to nod off for hours, wake up with withdrawal symptoms like diarrhea/vomiting/flu-like symptoms, and kill you on the spot from an accidental overdose. Sugar also isn't regularly consumed in ways that destroy your arteries or nasal cavity. And when is the last time you've seen somebody crash a car because they were inebriated from eating too much sugar? The comparison between the two is complete non-sense and I believe that you can see just as clear as me why that is the case.
Would the conversation be different if this were about ads for opioids targeted at children?