You can control whether or not your profile is visible to people with whom you are not connected. Go to the My Account page, select Profile & Account Settings, then select Preferences. In the Profile Visibility section, select either to show or hide your profile, then click Save.