My usb printer is about 40ft from my computer.

Can I configure a cable this way to make it work at that distance?

CPU ->"USB to Ethernet Adapter" ->40ft Ethernet Cable ->"Ethernet to USB Adapter" ->USB Printer