Yes, once you've earned Stars on a purchase, you can keep those Stars. Any Stars-earned purchase will be refunded as a Starbucks Store Credit, which means that you can use that credit to buy something at Starbucks but won't be able to earn Stars on it.