If it costs more than zero and you don’t care about euros not visiting your site, it makes sense.
For example if you have ads or external analytics (practically 100% of websites) you need a cookie banner. Best to restrict access than to annoy your innocent users.