This isn't a good question for this forum.
The short answer is 'Yes'.
The longer answer is, "It depends on what you do."
A webserver is just a front end / framework, for code you provide in scripts or compiled modules.
Start here
What's a Web Server? How does a Web Server work?