Yes. An active Xbox Live Gold (now called Xbox Game Pass Core) subscription is required to play online multiplayer on Xbox consoles (Xbox One, Series X|S).
Without a subscription, you can still play single-player games, use media apps, and browse the store.