Building any control systems, including a rocket control system, involves combining control theory with programming.
Control theory is the study of how to make systems behave in a desired way using inputs.
Planes, cars, trains, circuits, rockets and ...