does it matter where the game is purchased?

Hi, im trying to play the game with my partner and i was wondering if i can play with her if i have the game from xbox gamepass for pc, and she has it from steam, would it still let us play?
 
Top