Can you limit discount codes to pickup orders only?

Is there a setting that you can limit the discount code for pickup orders?