No, You will have to pay Capital gain tax on sale of stock even if you re-invest in CDs or annuity. There are no like-kind exchange rules in the ordinary sales of stock which would defer the taxability of your gain to some future period.
@RangerDan Thanks for attending the event!!