Just Wondering...?

How long should you wait after having sex to take a Pregnancy test? I know not right then but is 2-3days long enough?