I have testicle pain after unprotected sex. Could it be epididymitis?

Why does my testicle hurt after sex?