Whatever the case is, whether it's from an immediate family member or not, if your explanation about the funds satisfies visa officer, you will not have any problem.
Since It is true and easier to believe, that parents/siblings in countries like India help their child/sibling financially(for studies, accommodations, relocating and lot of other things), you have better chance convincing visa officer about the gift-deed.
Imagine a scenario where you have provided CIC with all the documents needed, and they are satisfied with all of it except they are not convince and doubt that the funds you have got as a gift from a friend are not gift but in reality you have borrowed it. You have chances of getting refusal based on their doubt.
By the way, Whom do you have in mind for gift-deed?