Prevent search engines from indexing your site

I believe adding the following code in the <head> section will tell search engines to skip your page:

<meta name=”robots” content=”noindex, nofollow”>