Could "published pages" be indexed by google?

I wonder if “published pages” be indexed by google?

You could publish a page by option “Anonymous users can see published pages, even when login is required” in settings.

It seems not good if a published page be index by search engine. I can not find document about this. Could you explain this?