Yes, not only does website security affect your SEO (it is a ranking factor) but it also affects your brand reputation and what customers think about you. Furthermore there are special requirements for website security if you collect sensitive information like addresses and credit card details.