I think it can work; it's unlikely that you'll meet a
Sanjay who isn't of Asian-Indian descent, and I can see a
Sanjay asking to be called
Sam in an effort to seem less conspicuously "foreign" or being nicknamed
Sam by his friends.
I wouldn't do it, but I don't have a hard time imagining somebody doing it.