NO. but there may be a way to defer and reduce the capital gains tax by investing proceeds in opportunity zone funds - talk to your broker. there may be extreme risk. your broker may not offer them.
here's more info
The gains will be includible in income no matter what you do with the gains. What that does to your taxable income and the tax rate applied to a long-term capital gain depends on your overall taxable income. Purchasing an annuity has no effect on that. Even if you invest the capital gain in opportunity zone property, the gain will eventually be includible in income.
Was the stock in a personal account? It doesn't matter what you do with the proceeds from sales, it will be taxable income to you.
If it was in a IRA you might be able to do a rollover.