Long vertical spreads can be closed at any time. If held until expiration, it is important that both legs are either in the money or out of the money. One leg being in the money could result in assignment/exercise which will leave a net stock position in the account.