Yes, you will be able to use Afterpay on orders after applying a discount code, or during special sales.