Depends. Steam is not DRM itself, you can open the game folder and copy the game to another computer and steam doesn’t care. The game often has its own DRM though which will stop you.
GOG is different in that they ban DRM outright.
Some games won't start if Steam isn't running but you can work around that with a fake steamapi.dll, it's not a deep DRM check.