Washing bottles, bf parts, etc

Sabrina 👼🏻👼🏻🎀

So I have a dishwasher with a sterilize setting. Would it be ok to wash bottles and all that in there? Or should I get a sterilizer?