Nofollow links will not prevent the indexing of a URL. What they will do is keep unnecessary links from influencing your site's ranking on search engine results pages (SERPs). It will also stop transferring backlink power to the destination URL.