Yes, definitely the website design can affect SEO. When it comes to search engine rankings, Google favors websites above other forms of web pages (such as blogs). So, if you want your company or brand to be found on the internet, you'll need a website that performs well on search engine results pages. So, the Web design is a significant component in determining where your website will appear in Google's search results pages. The good site design has an impact on every aspect of your online presence. The first place people go to learn about your organization is your website, and it's also the key to enhancing your search engine presence. A good design is beneficial to your SEO ranking, whereas a bad design is detrimental. Web design also boosts your authority, making it easier for users to trust you.
You may unintentionally make it difficult for crawlers to index your site, resulting in a decline in SEO rankings, if you make bad web design decisions.
People will spend more time on your website if it has a solid UX (User Experience) and logical architecture. For search engines, the amount of time spent on your website is a ranking consideration.