No, you do not “have to sell” the stock. As the holder of a put option, you get paid when the price of the underlying stock goes down which offsets your losses on the shares you already own, basically locking in a value. Since you never sold your stock, you are deferring the capital gains.