Hi there ~
I understand your concerns. The bumps on your penis can be genital warts
and they are a form of infection that can be taken care of by medication. However your description of the lesion is very limited and you need to consult a dermatologist
who can examine the lesions, confirm the diagnosis and give you the right treatment. I hope this helps.
Take care and have a lovely day!