As of my last update, NBA 2K22 does not support cross-platform play. This means players on one platform cannot compete with players on a different platform. Always check the official website for the most recent updates on this feature.