Yes, that's how it works. In exceptional circumstances, you may be able to get Steam support to revoke a key and apply it to your account, e.g. if you purchased a brand new game, the key had already been activated, and the retailer won't take it back.