No the window will close first then the code will run.