Can Google Detect an Affiliate Website

One of the questions that often comes up is does Google hate affiliate websites, and are they penalized in the algorithm?