Confirm with your broker, but if the option is exercised it no longer actually exists as an option anymore. That means margin is no longer required, so it should be freed up upon execution. Also, stock trade settlement takes a number of business days (3 in the US, for example), so even if the margin release isn't instantenous there should be plenty of time for it to be loosed before the cash would actually have to leave your account.