Yes, you can disable the view to the 18+ content in your Settings. Go to Your Profile, then Personal Settings.
You will see the option called "Display Age-Restricted Content". Selecting/checking this box will enable displaying the restricted content and unchecked means that the content will not be displayed.
On mobile click on Manage Account from your avatar, then Preferences from the pull down menu.