In most cases, SEO doesn't usually require much (or any) coding. It is absolutely possible to conduct outstanding SEO without touching any code. The longer answer is that yes, it's always good to have a thorough grasp of how programming works—or even to be able to do some of your own codings.