As a person who performs a lot of music on various instruments, playing in "closed" positions where you don't know the not you're playing is a just-fine strategy.
There are reasons why folks know the names of notes in some positions better than others.
When I was playing a lot of bass for folks in low rent with bands that were playing standard music and never rehearsing, I generally only paid attention to the low string and worked my parts out (often on the fly) around the relative pitches.
If you're trying to keep up with the bass part on a song you've never heard before while performing it on stage, it's much more relevant (and far easier/faster) to know the position of the minor 3 note of the scale than it is to know what note is the minor 3.
Over the decades I play a lot more piano, and that changes. I play a lot of blues and jazz but am quite poor at reading typical rep for the instrument. While I started out mostly playing using chord fingerings (and inversions), the more I play the more specific I can get on my understanding of actual notes. Because I've been playing a lot of clarinet (which forces me to transpose a whole lot, including reading a part and transposing on the fly), the names of specific notes has gotten a whole lot more important, but also easier with practice.
On the pedal steel (which I have only been playing for a decade on and am still coming to terms with), while I can pull all that knowledge I am still usually playing based on a notes position- I know what string/lever combo is going to get the 6 note in a given scale rather than thinking "I need to play an A to get this C chord to be a C6, and that's this position on the neck with the BC pedals down or that position with the LKR lever pushed.
All that is to say, it's okay to not know the names of notes if you understand their function related to the melody.
Guitar music in particular has very little actual pressure on learning any music notation or theory. Some of the greatest guitar soloists of all time could not read sheet music and knew zero music theory. This is common enough where there's good odds if you just name a great guitarist, they are probably in this camp.