Commenting on blog posts can be a way to get links to your site, and to have people follow those links back to your pages, especially if your comments are thoughtful and engaging, but by themselves they are just one tactic and not an overall SEO strategy.