You don't have to, no.
To the best of my understanding, provided you borrow for income-producing purposes, then you can deduct the interest. With shares, that would mean as long as they pay a dividend, or there's at least reasonable expectation that they will pay one at some stage.
GP