The surgery just moves the follicles around your own scalp. Body hair transplant can be done but is relatively uncommon, donor hair from other people (or animals) requiring a lifetime on immune system suppressing drugs as with an organ transplant is virtually unknown.
No, it's not pubic hair and you don't need to have a hairy back or chest, and no, there are not millions of low-status Turkish men walking around with scarred heads because they sold their scalp to a foreigner.
They take hair follicles from the back of your head, the "safe donor area" that is genetically immune to balding, and move them to the thinning areas. The total amount of hair on your head remains exactly the same, it's just repositioned to give the illusion of uniform coverage and eliminate bald spots.
That's also why it's not a miracle cure for baldness - you're limited by the amount of hair follicles available in the donor area.
See: https://ishrs.org/wp-content/uploads/2024/02/donor-area-asse...