Yes, website speed does affect SEO. Google has indicated that site speed (and as a result, page speed) is one of the signals used by its algorithm to rank pages.