yes when you run your visual studio it makes the following activities:
compile the solution.
build solution, after Build succeeded .
Deploy the solution into your Emulator or Device what is connect to your system as well as you visual studio selection.
After completely deploy MainPage.Xaml will display it is the first page.