Yes. The specific identification method allows you to use the cost basis of the shares you sell to figure your gain or loss. FIFO, or first-in, first-out, is the default method for figuring basis if you do not instruct your broker or agent to use the specific identification method. You can override FIFO at any time buy giving directions to your broker; get a written confirmation that you are using the specific identification method.
The total cost investment in an annuity. When annuity payments are made, the portion allocable to the cost investment is tax free.