Will this code do the same thing as a robot txt file: <meta name='robots' content='noindex,nofollow' /> If I put this on a page will Google not crawl and index it?
Yes. A robots file gives you more control over what should/should not be crawled but that meta tag (if put on the homepage) serves as a blanket making sure SERPs don't crawl your site.