I doubt this is a wart. For some reason, warts mostly affect the shaft of the penis, not the head. However, I'm sure you realize that it will take a personal examination for you to be sure. I advise you to leave the bump alone so as not to confuse the issue, and see a dermatologist. While you're there, get the information you need to stop being insecure about your penis. Having small cysts or sebaceous glands is normal. If that's what you have, you need not be insecure. They're not halfway to warts--they aren't anything at all.
Best.
Dr. Rockoff