Yes ofcourse it can!
Ayurveda has the capability to cure each And every disease as it has a holistic approach!
There can be a different reason for you to get affected with bacterial.infection again And again!
Like LIFESTYLE AND DIET!
Consult through practo first!
Next Steps
My advice to you for this case would be controlling your diet ( oily spicy outside junk stale food ❌)
yoga pranayam daily,with putting oil in nostrils daily will help you recover lost immunity!