Can I exercise the long leg of my option spread at expiration only if the short leg is assigned?

In the case of U.S. securities options, long contracts are automatically exercised by OCC at expiration if in-the-money by $0.01 or greater or if formally requested by the client prior to IBKR's 17:25 ET deadline.

OCC's rules require that all exercise and contrary exercise decisions be submitted by clearing members prior to the start of expiration processing, during which the clearing house randomly allocates long contract exercises to the holders of the short contracts. This processing cycle, therefore, does not afford the account holder the opportunity to first determine whether the short leg will be assigned prior to requesting exercise of the long leg in order to avoid delivery risk.

Additional Information

Powered by IBot
What happens to my options spread at expiration?
What is the deadline for providing notification of option exercise?
Will the long leg of an option spread be automatically exercised at expiration if the short is assigned?
Can you exercise the out-of-the-money long leg of my spread position only if my in-the-money short leg is assigned?