Yes, mIRC waits for the PART from the server when /part is used, but not when the window is closed using the close button.