You can do a great job of SEO without ever touching the code. But the longer answer is yes, having a good understanding of how programming works, or even the ability to program a little yourself, is always a useful skill. Most of the time, doing SEO doesn't require coding knowledge. However, there is some basic HTML and CSS code you can find, and knowing some basic knowledge about HTML and CSS programming languages can help you do SEO more effectively.
It takes a lifetime to become a good “C” programmer. Programmers who are very good at 'C' have been programming for the past 10 to 15 years. This is the #1 Reason Many Marketers Give Up Coding. They tried to learn too much.
For someone interested in learning to program for SEO, there are three main languages that are relevant to coding: HTML, CSS and JSS. A strong coding experience quickly becomes your strong USP (single selling proposition) that differentiates you from the competition, as you can perform regular SEO and analysis tasks at lightning speed and automate processes that could otherwise take several hundred man-hours. As a general rule, H5 and H6 headers aren't used much, so you don't have to worry about them, especially in your SEO efforts. However, there are times when SEO can challenge its technical side beyond the small snippets of code mentioned above.
It's no wonder why people ask if coding is a necessary skill to do search engine optimization well. Certain SEO factors, such as load times, HTML tags, metadata, etc., are necessary when optimizing. From small independent family stores to businesses with thousands of locations, having coding knowledge can be an important part of SEO. Its resources have been mentioned and shared by local SEO experts such as Eric Ward, Darren Shaw, Phil Rozek, Marie Haynes, David Mihm and Local U.