I had an ultrasound done at 19weeks and was told they were 99 sure it was a girl, i had them double check at 38weeks and yes it was still a girl we actually got to see the girly bits...so yes they were right.
But i have heard of stories where they have got it wrong.