The short answer is, "No, there is not. There are simply ways to make it harder." However, there's no shortage of companies happy to sell you things they claim will do that - impossible though it is, having been a kid, and having done a lot of network related work in my years.
What you can do is provide an environment in which it's harder (not impossible - simply harder!) to run across stuff unintentionally, and ensure that computing hardware is an environment where it's more difficult to start intentionally bypassing boundaries set up.
A Pihole is a good start, but it's also trivial to bypass unless you lock down your network pretty hard, prevent external DNS servers from being usable (blocking UDP/TCP 53 outbound from everything but the pihole goes a long way here), and manage to block DNS over HTTPS (which is a bloody nightmare), as well as external SSH connections you can SOCKS proxy over. Assuming there's a good endpoint. However, the Pihole will help keep the amount of crap down, and should do a decent job (with proper blocklists) of helping prevent unintentionally following links one doesn't care to follow (think "hosts entries to block certain goat and tub sites," if you were on the internet in the early 2000s).
Any computer a kid is using needs to be in a public space in the house, with decent foot traffic, and you should ask them what they're doing often enough that it's clear you're paying at least some attention.
No cell phones with browsers or mobile devices until they're quite a bit older (mid teens, maybe?). If they need a cellular device, get them a flip phone.
And then beyond that, it's going to be kid specific.
And make sure there are plenty of things to do that don't involve computers in their lives.
The book that just came out, "The Anxious Generation," by Haidt, goes into some detail on the results of our experiments of more or less unlimited internet warfare on the development of kids, and the results are an absolute disaster, especially for tween/teen girls (in terms of mental health, suicide, happiness, human connection... pick your metric, it's been a disaster for them).
And if you think this is over the top, go spend some time on r/Parenting and look for posts by teachers talking about the sort of absolutely absurd stuff they see on phones from kids in grade school and middle school...