Are these Genital warts? please help

I developed this mole type thing 2 months back. I showed it to a doctor, and they said its an infection that I could have got from gym, swimming pool and gym showers, etc. Please any guidance will be helpful .