Not that it is a guarantee, but if you take really good precautions it is less like to infect a yeast starter than a batch of beer. Things to evaluate:
*Make sure you flask is absolutely clean (pbw or oxyclean soak) and rinse it well.
*I keep my flask and stirbar submerged in starsan until I need it. Don't rinse, just dump.
*I also throw scissors (if wyeast packet is used), funnel, and the pack of yeast itself in the starsan. I throw the foil I put on my starter in the starsan for a minute too before putting it on the starter.
*I bring my starter water to a boil in stainless pot. I add DME and boil for 10-12 minutes (I account for some boil off by starting with more water).
*When boil is done, I take pot and set it in a bigger pot of cold water. Change out for new cold water a couple times. Put some ice in the water the second or third time. Lid on the wort the whole time.
*Pull everything out of star san as I need it. WOrt and yeast into the flask. Foil on top.
Put on stir plate.
For me, one of the best indications that everything is "good" is that After a day you swirl up the starter and as it foams from CO2 coming out it smells "bready".