You can hate coding and be an excellent network engineer or even DBA.
I'm an infrastructure guy and I learned to code, but I don't code today. The other poster who talked about good people in the old days using Perl and suchlike tools is right. Competent people care about automation.
But there are all sorts of automation tools that don't require knowing how to write object oriented code or do a ton of code reviews. Terraform is one - it's yaml, and the complexity is one of design patterns. Another is Ansible. GitHub Actions. Many many more.
Let me throw out a grenade. Software developers often over estimate their capabilities in technology. Because a person is an expert in Ruby or Go, and on the weekend they stood up a hosted app on ECS, now magically they're geniuses and understand DevOps.
False. DevOps engineering, network engineering, DBA, and a lot of other non-developer jobs take 5-10 years to get right.
Hopefully I've slammed our Leetcode hiring practices, but really I'm just venting at this point.