Using a condom provides you protection against gonorrhea, chlamydia, HIV, hep B, trich.
It offers significant protection against HPV, syphilis and herpes, but not total.
A brief insertion isn't likely to transmit anything. Without symptoms, I wouldn't worry.
Handjobs are no risk.