Start by checking your printer's port. Most printers use a USB-B port. Some newer models use USB-C. Very old printers may still use a wide Parallel port.
Next, check your computer's port. Many new laptops only have USB-C ports. In that case, a plain USB to printer cable built for USB-A will not fit, and you need a cable made for USB-C instead.