First, check for the file using Google’s Robots.txt Tester.
Although creating a robots.txt file is fairly simple, adding it to the root folder of your site is complex. Creating the necessary rules to exclude private content can also take time. Mistakes can happen and the worst outcome would be to disappear from Google altogether.