Yes, TSP plan is a qualified plan. Per IRS: "The CSFS, FERS, and TSP are considered qualified retirement plans". - pub 721, page 15.
https://www.irs.gov/pub/irs-pdf/p721.pdf