If I own a game on a different device can I play it on pc?

I have had Overwatch on my Xbox for a while and was wondering if I had to buy a new copy to play on PC.