Some people have done it with mixed results.
Problem being the TBH design is not well suited to distribute the vapors properly. Usually a fair bit of empty space in the average TBH, plus the top bars being joined together is a major problem.
A non vapor treatment such as apivar strips, which can be hung between combs and spreads by bee to bee contact, is ideal for TBH's.