Yes. Console online multiplayer requires a paid subscription: Xbox Game Pass Core (renamed from Xbox Live Gold, September 2023).
Game Pass PC ($11.99/mo) = Game Pass library on Windows. No Core needed. Online multiplayer in PC Game Pass titles works with Silver (free) account.
Bottom Line: Console multiplayer = paid Core/Ultimate. PC multiplayer = free (mostly). Subscribe smart via stacking.