Hi welcome to HCM.
As you have already consulted a physician, and he thinks that you should consult a surgeon, I think you should certainly consult a surgeon immediately. One of the causes of pain in the testis is twisting ( torsion) of the testis, which is an emergency situation which requires immediate surgery to rectify it otherwise the testis may be damaged. You will need an ultrasound
examination to find out the exact cause of pain in the scrotal region and accordingly it has to treated. Just prescribing a few pain killers will not solve the problem, which your MD physician could have done.