A CNC programmer is supposed to create the programs that the CNC machine operator uses to create components with a CNC machine.
Sometimes the operators know more than the programmers.
Different machines read different types of programs and are capable of doing different things. The programmer should know this before creating a program and they do this by using programming software (maybe), and the drawings of the components that require manufacturing.