Can I deduct the losses on the sale of an IRA that is rolled over into an tax deferred annuity?

I had incurred a large basis reduction due to stock losses in my portfolio in the years before rolling this IRA into a tax deferred annuity in January 2017..