can dirty ears cause cats to scratch them alot?

my cats ears are dirty with yellowish brown wax (I'm assuming it's wax) can that make them scratch constantly cuz their dirty?

also I just got her from her previous owner who didn't really pay much attention to her and I'm pretty sure she's never gotten her ears cleaned ever so I'm assuming that could be a reason for there being more than a bit

Glow Resources

Let’s Glow

Glow is here for you on your path to pregnancy

Glow helps you navigate your fertility journey with smart tools, personalized insights, and guidance from medical experts who understand what matters most.

25+ million

Users

4.8 stars

200k+ app ratings

20+

Medical advisors