It may have been. When it occurs on the
penisCancer - penis
Curvature of the penis
Penis care (uncircumcised)
Penis pain, herpes type 1 is basically the same as herpes type 2, only it recurs somewhat less often on average. Still, you'll want to use condoms, avoid sex when the herpes recurs, and tell future partners that you are taking these precautions. If the herpes recurs, it is likely to be in pretty much the same area.
Take care.
Dr. Rockoff