Margaret Hamilton did not head the effort. She was a manager on the project, but she didn’t join until relatively late. At the time of Apollo 11 she was in charge of the Command Module’s software (https://www.doneyles.com/LM/ORG/index.html), but most of the work had been done by the time she assumed that position. She later became head of the whole software department, and had a lot of responsibility for modifications for later missions and Skylab, but she and others have greatly exaggerated her role on the project.