Will apple unlock my iphone 4s to another company?

I broke my iphone 4s a couple months ago and my friend is willing to give me her old iphone 4s but its from sprint if i go to apple can they unlock it or do something to it yo put it on at&t? If not what are the best websites to use to unlock an iphone sprint 4s to at&t

Apple will unlock it for you.