It will change the owner locally only, and you will be permanently out of sync (or at least, until the server changes it and sends an update to the client).
There’s no reason to call SetOwner() client-side on a replicated actor. It needs to be called Server side.
Realistically SetOwner() should have an authority check internally, but it doesn’t for some reason.