I was petting my friends dog...

I was petting my friends dog and noticed he had poop on him 😩 I washed my hands and sanitized right away. This won’t hurt my baby right ? I’m 24 weeks . (No negative comments , I just worry about everything)