Without extra configuration of the web-server it will. But in Apache and Nginx you can have multiple websites on the same web-server. In Apache these are called Virtual Hosts, on Nginx they are called Server Blocks.
I’m not to knowledgeable on them but I am sure there are people around here that do have the knowledge to give some pointers.