Can Matomo remember if a user has refused cookie consent?

Hi,

I want to give my users a good experience regardless of whether they accept cookies. I understand that it’s quite common to set an “opt-out cookie” when a user chooses not to accept analytics cookies. Does Matomo support this, or do I need to manage consent separately?