For most websites that set non-essential cookies, yes. The EU GDPR and ePrivacy rules require opt-in consent before tracking cookies run, the UK ICO.
Google Consent Mode v2 is the framework Google tags use to receive a visitor's consent state and adjust their behavior accordingly. Since March 2024,.