The standard behavior of AffiliateWP is to prevent affiliates from earning a commission on their own purchases, either via their own affiliate links or coupon codes.

When Allow Own Referrals is installed and activated, affiliates will be able to earn a commission on their own purchases via their own affiliate links or coupon codes.