Does disable the setting to join non xbox Networks prevent crossplay?

There’s a setting on xbox under General - network security - communication and multiplayer to allow connections to non xbox Networks.

Does this affect crossplay?

Anyone tried?