yeast infections???

I''ve only had one, years ago, but my best friend gets them all the time and she said since I've had one before I'll most likely have another one? I don't know anything about them, other than they suck and take a few days to get rid of. Any input?