Theoretically hair can be transplanted from any part of the body to another. The only issue is that the hair will retain it's initial texture, length, color, etc. so it may not look appropriate depending on where the hair is being transplanted from. This is why we prefer to take hair from the scalp for hair restoration before considering anywhere else.
You can't transplant hair from one person to another, however.