Even if you end up returning or exchanging items from your order, you will still get to keep any loyalty points earned from that order! You will not lose earned points if you return items. Exchanges will not earn more points.
If you use points towards an order to receive a discount, however, you will not get those points back if you return or exchange items. Once points are used, they cannot be returned.