As long as you aren’t doing anything asynchronously, this should just work out. The game instance is fully created before the world, the world before the game mode, and the game mode before all actors.
Here’s a chart that may more clearly visualize it:
Of course the begin play in UWorld is the UWorld’s begin play, not begin play for all actors