I can’t say anything in regard to modern printers, but I don’t trust any proprietary device connected to the internet.
I have an old inkjet and an old laser printer, both without network functionality themselves - but I connected them via USB to a Raspberry Pi, which runs a printer server and makes them available on the local network.
I can print and scan from my Linux laptop, and I also managed to print something from my Android phone. Haven’t tried Windows yet.
Configuration of the Raspberry Pi was easy, especially enabling scanning via the network.
I can’t say anything in regard to modern printers, but I don’t trust any proprietary device connected to the internet. I have an old inkjet and an old laser printer, both without network functionality themselves - but I connected them via USB to a Raspberry Pi, which runs a printer server and makes them available on the local network. I can print and scan from my Linux laptop, and I also managed to print something from my Android phone. Haven’t tried Windows yet. Configuration of the Raspberry Pi was easy, especially enabling scanning via the network.