The answer is No and No.
Nothing stops you from trying to place your # on the reservation. But, when your friend checks in, the hotel will change the name and it will not post.
You have to be the staying and paying party to receive credit/points.
As far as your benefits, the hotel may or may not honor them, but they are def. not obliged to do so.