By default, every profile is public. Each user can change the privacy of their profile in their profile settings by navigating to Profile page -> About -> Preferences -> Who can see my profile -> Site members.
Based on admins User Profile Settings configuration under Display name style –
Users also have the option to hide their profile from the search results in Profile settings if enabled in WP Admin-> PeepSo -> Configuration -> Appearance-> Member Listing