Yes, if you're going to be exercised or assigned into a position, you either close out the option entirely, or alternatively open the opposite position before hand so that it'll be closed out instead. SPAN is smart enough to handle this case - although I'm not certain if it's smart enough to cut...