Yes, you can. So for example, if your friend wants to transfer his shares from Sharekhan to your demat in Zerodha, then he needs to submit a Delivery Instruction Slip to Sharekhan with the target DP details (Zerodha). You also need to be aware of the impact of taxation, check this thread for more.
And this is how you typically fill a DIS slip.