Quick question ??

Sooooo I was wondering, if you finger a girl, and say hypothetically she has an std and you go and wash your hands immediately after doing so. Can you still get an std?