Yes.
Its not a big thing if nothing else depends on lighttpd.
Purge it with below:
sudo apt purge lighttpd
And post output for above one here if it says it didnt remove files or folders for some reason.
Those files not being removed could cause issues if proceed.
To have it reinstalled and configured, run below one and select repair:
pihole -r