Robots.txt file is the most important because you want to tell the search engine that which pages will not be visited.
No it is not necessary to put robot.txt file. It necessary when you want to apply some restriction on crawler.