Is a pap test necessary if I am already getting a transvaginal sonogram?

Yes. A pelvic sonogram is a procedure for visualizing the internal organs. It does not provide any type of screening for cervical cancer. That is the purpose of the pap test. They are two different tests for two different purposes.