It completely depends on what kind of person you are. If social media is just a fun time activity in your life, you can easily study with complete focus. But if you fall in the second category of person, social media rather than being a fun activity is an addiction then you have to limit your daily usage or if you are not able to limit your usage, you have to delete your account.