Is it possible to wall a device off from the internet, while still allowing it o...

@ZenHeathen@beige.party

Is it possible to wall a device off from the internet, while still allowing it onto the wifi that allows other devices to reach the internet?

Like, one main machine that does all the usual stuff, over wifi and internet, but then a second machine that connects to that wifi for file sharing with the main machine, but cannot reach the internet nor be reached by it?