The ring is just as effective (or more) than pills because it's easier to use and harder to mess up.
You don't necessarily get yeast infections from pregnancy, you could just have one. Also, when I used the ring, it caused quite a bit of irritation after about a year. If it doesn't go away, I would be worried about that and think about switching.
But don't worry, it's really effective!