I did this before moving to putting my phone on silent and also installing an app which prevents any number not in my contacts list from ringing my phone or even going to voicemail. Just drops the call silently with no ring on their end, either. Everything on my phone is silent except for a very short list of contacts (two people, my wife and my best friend) and a single pipeline for work alerting which is tightly-regulated.
It is the single most effective countermeasure I've taken to reclaim my own thoughts, though slowly phasing out my use of all the shitty social media is a close second.