Client's uses the server's player controller (UE5)

It’s on the image I posted earlier. The image shows a function on the game mode that is called from the player controller. This function spawns a character and and posses it with the controller that called it.
I am giving the controller by using the self reference on the controller and not by using get player controller(0)