Predicting the gender

How accurate are ultrasounds at predicting gender? I don't know whether to go for it or skip it. A friend of mine was told it was a girl, and they bought all the cutest dresses and whatnot, only for the baby to turn out to be a boy