No.
You need a web server of some kind, but it does not have to be Apache. You could use Nginx, IIS, LiteSpeed, or another one.
Some development frameworks (such as Ruby on Rails include a built-in web server, so you don’t need a standalone one.