Question: Do Affiliate links influence your sites ranking?

Im currently building a webshop and have thought about implementing an affiliate system where id pay people a certain % for every sale I make through them. Now my fear:
People will try to use spam bots or something like that and post a lot of affiliate links on low quality pages in blog comments and stuff like that. Now, I heard google can recognize affiliate links.
Does it recognize them and just ignores them so people wont get a spammy profile or will it put my ranking down?
And also, if…

Question: Do Affiliate links influence your sites ranking?