Trade with a friend

Hi,
So my friend quit the game about two months ago, and he wants to give me his in game gold since he won’t be playing the game anymore. Could that get me banned?

If its legit Gold it shouldnt be a big deal.