Welcome!
This sounds like debt recycling, and is covered in quite a few posts you could search on.
It is a tax effective way to save money, however like anything, dont do something just for the tax benifits. Scrutinise any potential investment carefully without regard to the tax benifits...