Websites can choose whether to be scraped or not, and google respects that choice
Not exactly - robots.txt will prevent Google from crawling the page but it might still show up in search results (without a snippet or your page title) based on how others link to it.