you're right. "As an equity option writer, you may be assigned at any time before your open short contracts expire, as long as you have not closed them out (or bought them back), with an offsetting closing purchase transaction." (from an OIC education course.)