The original answer to this was a single word — "yep" — which is helpful in tone and useless in substance.
Littlest Pet Shop's online world tied codes to physical toys, in the same way Webkinz did. Each code was single-use and printed on packaging, so a code posted publicly is almost always already redeemed by the time anyone reads it. That is not stinginess; it is how the system was built.
Buy a toy with a tag if you want a code that works. And a caution worth passing on to younger players: never trade account passwords for codes, and do not enter details from strangers into an account. Code-trading threads attracted a fair number of scams for exactly that reason.