Coding without expertise in the subject is why software is dangerous. That is why we had the airline flight cancellations by the thousands recently.
You are absolutely right. One cannot hope to control any process with computers unless one had a thorough understanding of the the process. Some geek in an office has no understanding of how an aircraft flies or a power plant works. And enough of this AI nonsense. There is no such thing. There in fact seems to be a distinct lack of actual intelligence. There are incredibly capable algorithms and machines but they are not intelligent. They don’t reason. An idiot savant is not a polymath.