The concept is right, but the most important thing is to make sure that you create a new loan split specifically for the IP costs. If you just draw out the funds your loan will be mixed use and you may not be able to claim deductions on the interest.