If you use your points towards a purchase and later decide to make a return, your points will be credited back to your loyalty account. In case of a partial return, only part of the points are credited back (based on the ratio of the refund).
Likewise, any points earned for a purchase that you return are deducted from your loyalty account.