Knowing basic programming logic is a great help when getting started (or starting when you're 6, like I did). And to do that, knowing basic logic in general is a great help. Things like "Not A and Not B" is the same as "Not (A or B)".
Once you know basic logic and you figure out basic programming layout, you can benefit a lot more from looking at the scripts than without it.
Program flow, for example, can be controlled through (most simply) the use of if, do, while, for, and select case statements. Other things include calling functions and returning values, and doing (of course) mathematics or some such. I won't try to go into too much more detail right here, since generally they teach you this stuff over the course of a semester at college level (though IMO it could go a lot faster). But if you have any questions about anything in particular, feel free to ask. However, BlueMonk is definetely right. You should take a look at the
Scripting Docutorial first things first.