All programming languages are the same and all programming languages are different. Logic is logic and common to all languages. The syntax and format of languages are different and have a few different rules. But they all do the same thing: Process data to achieve an end result.
The most powerful bit of code in any language is the ''If'' statement. All languages have this decision making functionality, only the syntax changes.
If (some statement here)
(If true, Execute some code here)
Else
(If false, Execute some code here)
End If
So yes, having an understanding of basic programming would be very helpful so you can structure the logic flow in a way that makes sense. Google GWBasic, this is probably the simplest language to learn to understand program flow, and is quite similar to many CNC macro languages.