They might still have the machine then, but since today's kids have never gotten into "downloading digital stuff locally" but use streaming and online-only services for practically anything, the machine without internet access is nearly useless for entertainment purposes.
And how do you propose to do that? I have PiHole and OPNSense set up already. It's impossible to block everything.
If your kid isn't enough of a hacker already that she/he uses MAC address modification to get around your limitation (most aren't, which is what I'll assume for now), this should do it - and you won't have to deal with the manual work of blocking and unblocking for too long, because I can guarantee you that they will bend to your will rather sooner than later. After all it's just some easy-to-do and quickly done household chores, it's not like you want to enslave them. And once you've followed through on your "no-internet-for-lazy-kids" policy once or twice and shown them that you are indeed able to take their toy from them, the threat of doing it alone will do wonders when the next chore comes up and they start inventing reasons again why they just can't do that nasty work right now.
Kids should always get basic necessities like a bed and food, but if they refuse to help the family in any way, there is no reason to not limit their access to luxury stuff, like electronic entertainment devices or sweets or whatever. Being able to do that is an enormous leverage in the hands of parents, and I really wonder why so many parents seem to hesitate to use it.