You are borrowing to buy share, so the interest will likely be deductible - depending on the shares.
Cash in the offset account won't affect the deductibility.
But if you saying you will be borrowing and putting it in the offse then the interest won't be deductible.