SQL statement sequential execution for multiple statments
If there are multiple queries in a batch then these queries will be executed in the order they appear in the batch.

After the execution of Query 1 is finished then the update query will be executed.
You can run debugger to see the sequential execution.