It depends on the promo code!
If your promo code says it applies to the next order it needs to be entered prior to placing a pickup. If you've already scheduled your order you can contact support.
If your promo code is for a credit amount it can be entered anytime before your order is delivered.
Helpful related articles:
Entering a promo code