How are StarterPlayerScripts synchronized with the Server onPlayerAdded event?

Hello
Are the scripts in StarterPlayerScripts folder synchronized with onPlayerAdded event and how can I make sure that the scripts in this folder run on the client only after the onPlayerAdded event on server has finished?

Thanks in advance

All the Scripts in StarterPlayerScripts are executed the moment the player joins.

(You can’t put Server Scripts in StarterPlayerScripts iirc)

I have server side code in onPlayerAdded event
and I have client side code in StarterPlayerScripts
how to ensure that the server side code for a given player is executed before the client code for this player (in StarterPlayerScripts) is executed?