Yes
I play the shield version, and I have still found other sword exclusive Pokémon by playing with other random players. If you play online with other players, you can still sometimes encounter Pokémon that can be found in the other version depending on who the party leader is.
Source: experience
Hope that makes sense