How accurate is Ultrasound?

Two of my friends told me the ultrasonologist told them they have baby girl and they shopped accordingly pink pink items and they deocrated baby room pink also and last they both have baby boy.