Thanks for the query.
Yes there is a risk of developing STD
Although the chance to develop HIV
is very low, unless you had a cut on your penis.
There is a risk to develop bacterial infections like gonorrhea
Let me know if you have any other doubt.
you can ask a direct question to me on this forum, following the below link.
Wishing you a good health.