Yup, you can put an auth proxy in front of the CDN, for example using an edge worker.
See the auth guide: https://electric-sql.com/docs/guides/auth
Some CDNs also validate JWTs, so the CDN can be the proxy part of the Gatekeeper pattern (in the guide).