If both testicles are twisted resulting to both testicles being non-functional (testicles are the organs producing testorsterone, hormone responsible for penis size), especially when this will happen before a boy reaches puberty, then yes, there is a possibility the penis will not grow in size. I do not know of any STDs though, that will affect penis size. I hope this helps.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.