Can Arduino R4 With a ethernet shield work as a webserver node.js?
If you mean running a NodeJS server on the board then it's a no.
I suggest you look into some of our other boards that can run MicroPython and make a server with those.
You can make web servers in Arduino C++ but MicroPython makes it a lot easier
A Raspberry Pi (or similar) would seem more appropriate?