If anonymous users can access a page, they can use the embedded PocketQuery macros just like any confluence user. There is only one limitation: For technical and security reasons the option "Load macro dynamically" has to be disabled (as REST calls to the PocketQuery backend always need to be authenticated).

Note: Naturally, you will want to choose carefully which information is save to be publicly available.