Yes! If your computer’s power source is close enough then yes indeed you can use such short-length cables since they help keep workspaces tidy by preventing excessive amounts from being visible on top surfaces around desks etcetera