Comment on Basics on Options Shorting/Writing
Yes, you are right in both cases.
Also if you have bought as MIS and you don’t square off yourself, at 3.20pm the system runs an auto square off. Also if you have short as NRML and don’t square off on the last thursday, the position will automatically get squared off based on closing price.