Narrow pelvis question

Was just wondering if your doctor can tell from your ultrasounds if your pelvis is small or narrow? Which would mean you would have a c section. I’m assuming they can tell this by the ultrasounds? I️ know a girl who has to have a c section cuz she had a narrow pelvis/birth canal.