Question about PvP toggle

Will the PvP toggle affect sinking ships aswell? I just thought of it now since:

explanation

I joined a server but I had that glitch where I spawned in the sky. Some random dude started attacking my ship but for some reason it said he was in the dark sea so I couldn’t message him. I am also really confused about this aswell since I thought my brig would just spawn at the border like normal.

Anyway yeah that’s it

Yes, would be stupid if it didnt.

If a source was needed
image