Afaik, it only locks the row(s) in question. Do you have a setup where the same row is being updated by multiple clients all the time?
Postgres (presumably other databases) can propagate these locks to table locks [1] and cause contention for the whole infra.
[1] https://blog.heroku.com/curious-case-table-locking-update-qu...