Yes, you still have to pay taxes on the stocks even if you don't withdraw them. The taxes are based on the value of the stocks at the time that they are sold, not when they are purchased.