Yes, I was lectured strongly by my mother and maternal grandmother that proper girls only wore white full-coverage underwear and don'tcha know that any other color or style will give you infections?
Later, when I was 25, my BF's mother told me the same thing. I ignored all three once I bought my own.
I have never seen a poster or booklet at the GYN that mentioned a correlation between underwear colors/styles and infections.
Colors and styles, no, but I do seem to remember reading that nylon panties, because they don't breathe the way cotton ones do, can exacerbate a tendency to yeast infections (thrush, in the UK.)
I wear bikini panties, and my mother was horrified the last time I washed clothes at her house. "Aren't those thongs uncomfortable?
Because they were smaller than her granny briefs, they HAD to be thongs!