If the printer does not have built in wifi and does not have an rj45 Ethernet port (the kind on your router), then you will need to connect the printer to a computer, and then set to share the printer.
Then other computers on the network can use the printer.