Yes! WordPress even comes setup with SEO best practices. Although to fully optimize your site for search engines,  you will need to do ongoing search engine optimization.