The two are not directly related, no. It depends on why you are asking the questions and what the questions are.
If you ask questions for small clarifications or if your questions are an assumption based on the present material and the answers provided are understandable to you, then it's likely that you are doing well or that asking the question was useful to you.
If you are constantly asking questions because you are completely lost and the answers provided do nothing to help you understand, then chances are that you do not comprehend the material. In this case, the actual number of questions you ask doesn't matter, and you either need to go over the material or get with the professor to determine what needs to be done.
Why are you asking? Are you worried that you currently ask to many questions or are you planning on making a quota for number of questions asked per class just to be successful?
For me, I ask very few questions during classes. I usually understand the material, and my questions are usually phrased as an assumption that can be made based on what we just covered or if there is some small detail I did not understand. I have classmates that ask quite a few questions, mostly nonsensical, which shows they do not understand the material. So far, I have been more successful.
That doesn't mean that the less questions you ask, the better off you'll be either. If you have a question, then you should ask. The teacher can decide how to proceed from there. Again, I don't ask many questions, but when I have one am very quick to pose it.
Edit- My whole point is that there is a distinct difference in always wanting to know "why?" as a drive to understand vs always HAVING to ask "why?" due to not understanding the material.