Groin pains. Can they be nonphysical and just come from anxiety?

Groin pain would be. An unlikely anxiety symptom.Anxiety symptoms can include feeling nervous or irritable, muscle tension (especially in neck, shoulders ; back), poor quality or minimal sleep, lack of concentration ; easy fatiguability. Lump in throat or butterfly in stomach sensation can occur. Sometimes the worst thing about anxiety is the just not being able to put your finger on the reason that you feel that way.
Yes, but . . . Anxiety can result in a vast array of symptoms, including pain almost anywhere. But groin pain is not commonly caused by generalized anxiety. Like all things in medicine, your concerns need to be sorted out with an appropriate history and physical exam. See a good doctor.