No, because that isn’t teaching the child anything.
Addiction forms as a symptom of lacking in other skills, not an excessive interest in a given item. The alcoholic is not that way because of a passion to enjoy alcohol, they are likely running from past trauma or self medicating for other mental health issues.
If dependency is really a concern the parent should get involved in their child’s life. This might include family therapy,
All the child will learn by being denied video games is that their parent is against those games. This may increase obsession during rebellious teenage years.
As an example my parents didn’t get me involved in video games much as a child (there was a financial component to this.) Yet when I left home I played quite a lot of them. The same is true of watching TV and other things that I couldn’t do growing up. Over many years I have worked out a somewhat healthy attitude towards screen time, but it could be far better.
In contrast I was helped by my parents to develop a healthy attitude and habits around alcohol, sugar, caffeine and exercise. These habits that I generated in my younger days have paid off in my health as an adult.
Remember that the child will emulate the parent regardless of what the parent says. If the parent spends all day in front of a screen, the child will follow that example. Take the kid to the park, learn a game or hobby together.