Pretty sure if it just “accidentally hit your dick”, you can just quickly wash it off without having to be aftraid of any infections. If you were pounding that chicken for a half hour on the other hand…
salmonella on the surface, even on the penis shoul be low risk. If you're causing lesions with vigorous pounding, that can cause an infection.
The four factors for transmission of infectious disease are: pathogen, vector, quantity and opportunity. The sooner you wash up with common body soap, the lower the risk.