Yes. Redeem codes on Movie Star Planet are tied to purchases, so you need to have paid for the item or membership the code unlocks before it will work. The code itself is not a discount that makes the purchase free; it is the delivery mechanism for something already bought.
Codes are printed on receipts, included in gift packages, or handed out during official promotions. Each one is single-use, so a code posted online by someone else has almost certainly been claimed already.
Be skeptical of any site advertising a "free code generator." Those pages exist to collect clicks, survey data, or worse, and MSP staff will never ask for your password in exchange for a code.