if we did not anticipate higher income, do we still need to pay underpayment penalty?

what if we sold our stock in December and could not estimate it before. Are we still subjected to tax underpayment?