Yes.
When you use a calculator to compute 10 plus 5, you must push:
10 + 5 =
... in exactly that order. Pushing
+ 10 = 5
... will not work. The order is important. The same is true for computer programs.
A program is like a recipe for baking cookies: it is a list of instructions which are followed one-by-one in the correct order.