Yes, you can do it both ways - online and offline by visiting the branch. It is called as off market delivery. For offline you need to carry off market delivery instruction slip to bank with all the details of the shares and the ICICI Direct staff will do it for you.