If we can, and it works out to less harm vs benefit than otherwise: Yes. But it turns out we can't for alcohol and cigarettes (except regulation). We fairly much can for workaholics - Norway has laws that stop working overtime except in certain situations, and they actually work fairly well. I don't know if we can for social media, though I see California is trying to stop some of the addictive forms of social media.