Yes, you can receive a refund even if you used a discount code. The refunded amount will reflect the discounted price you paid.