Ultrasound question

I had an MRI of my low back and they noticed multiple small cysts on both ovaries. They want to do an ultrasound. Is that done vaginally? Does it hurt?