Hello,
It would be useful to know, if you have any other signs or symptoms along with these red dots like itching, fever, swelling of head of penis (glans penis). The shape and contour of the said red dots is also important.. Also as per you description, you noticed them after having sex. This may indicated a sexually transmitted infection. If they are red rash like spots with itching and/or swelling of head, then it could be an yeast (candida) infection. Small blister like lesions with pain and fever may strongly indicate a herpes infection. Molluscum contagiosum infection can appear as small bumps with central depression. Also, genital warts due HPV (Human papilloma virus) infection can present as small pink/red bumps over penis.
Other harmless conditions like Fordyce spots (elevated sebaceous glands), angiokeratoma of fordyce, pearly penile papules can occur in normal men and do not require any treatment. I suggest you to not worry and get examined by a physician or skin & STD specialist to determine the cause of these spots. If you are having any associated symptoms corresponding to infection, it would be better to get your female partner also examined and treated.
Hope this helps. Thank you.