Luckily for the vast majority of guitarists who don’t know much of any theory there are these magical devices called a capo!
And digital keyboards have a transpose by semi-tone feature!
It is entirely possible to learn to teach, play, and create new music in many styles without any knowledge of music theory.
It’s really hard to get very good at live ensemble music performance without learning some theory as a byproduct of the necessity of communicating with other musicians.
It’s really hard to get good at playing singing and playing songs on instruments like the piano or guitar without learning the names of some chords because reading at least chord and lyric sheets will accelerate your learning process.
I definitely know guitarists who know basically zero theory but who could hear a song a couple of times and then accompany a singer in any key based on playing by ear and interpreted and performed in a way that the original songwriter couldn’t have been imagined.
The entirety of the Nashville music industry is based around a notation system called the Nashville notation. 1s, 5s, diamonds, bars. The keys are left out and depend on which singer is recording with the band. Five note scales, bends, and capos and you’re talking about half of the popular recorded music in the USA in the 20th century, from rock to blues and country and everything in between.