I dug into this a tiny but and learned that the ACM started having conferences in the early 1950s - https://dl.acm.org/doi/pdf/10.1145/30408.30418 - while the famous Dartmouth workshop that coined the term AI was later, in 1956. So I agree, it looks like computer science was already establishing itself as a discipline before the term AI started to be used.
There's been some overlap naturally, e.g. Yershov or Hopper attending both types events early on. But hardly any of content in say TAoCP was considered AI at any point.