You will collect points an any order using a discount code, but you cannot combine this with a points credit in one transaction.