Close [X] kills Chrome/Firefox/Safari Tabs
Yes, this is how it's supposed to work. Closing the window will literally close the window, but quitting the application closes the application, saving the state of the application (if it supports it) including the windows. The red × does not quit the browser—it just closes the window. The browser itself is still open.