Not necessarily.
IIRC, they are there due to EU privacy laws. However, some sites have
other messages embedded, such as opt-in for tracking, etc. Decide
whether you trust the site, then be sure to delete unwanted cookies from
your browser after the session.