No, because that case is too vague. Sending a notification isn’t a crime, especially when you request them by not turning off notifications.
This is only funny because it's so close to the truth.
You know what makes it such a subjective question? The cigarette supplier sells a substance with an addictive chemical inside of it. Notifications are not a substance, the drug response is your own chemical (dopamine). Still an interesting question though.
But also, are there social media apps where you have to opt in to notifications? At least with native apps, I've only ever seen opt-out behavior, which doesn't really work with that analogy.