Raising barriers to access works. Kids generally do not drink alcohol, drive, vote or smoke. There are exceptions but it makes it a lot harder and does reduce access. And when they do drink and smoke it is generally when they are close in age to the end of the ban.
To say that some will get around it doesn’t mean we should not do what is best for that group as a whole.
Unlimited and early extensive use of social media and hardcore porn is not healthy for kids. It will screw up their worldview. We should ban and limit them smartly if we want to support healthy kids.