AOE II: DE crossplay

I have AOEII with Xbox gamepass on PC. If my friend buys the game on steam (same edition and version), will the cross-play work?

Does anyone see any lag issues?