Alternatively, connect the two via Wi-Fi but make sure both your computer and the printer are connected to the internet properly. Use the USB cable to check if your Apple computer recognizes the printer. Make sure you follow all the given instructions. If things get overly complicated for you, just type in the model of the Samsung printer you own.
You can find details about this in your printer’s manual. First off, make sure the printer is compatible with the version of the Mac OS/ macOS currently running on your device.