Does /setworldspawn affect /spawnpoint?

This depends on who "the player" you're talking about is. The important thing is that the world spawn and a player's spawn are entirely separate things, and these commands each affect one of those, but not the other.

/setworldspawn moves the spawn point encoded in the world: this is where new players and players whose spawn points are invalid (e.g., broken or blocked beds) are spawned. Any player with a valid spawn point already set elsewhere will be unaffected.

/spawnpoint changes your spawn point, just as if you'd used a bed.

So the result of typing /setworldspawn then /spawnpoint would be to change the default spawn point of the world to the coordinates you specified in the first command, and then set your spawnpoint to the coordinates you specified in the second command.

If by "the player" you mean anyone else, then what will happen depends on whether they already have a spawn point set with a bed or with /spawnpoint:

  • If they don't already have their own spawnpoint, their spawnpoint becomes the new world spawnpoint.
  • If they do already have their own spawnpoint, nothing changes for that player.