Stock option rules

Suppose i invest in stock option for example in IOC but in expiry if i dont able to exit… Should i have to take delivery of the said stock???