I've had an MRI of my head due to dizzy spells several years ago. Not sure how the procedures differ, but the MRI wasn't bad. The worst part was not moving. You always get an itchy nose when you're told not to move.

I hope your CT scan comes back good and your headache goes away soon.