Yeah, depending on the disease you can be contagious and show symptoms within a few hours. However it takes a while for you to produce antibodies for diseases so it may be some time before you can be tested
Stop having unprotected sex with sex workers
Stop having unprotected sex with your wife until you're cleared
Get tested in a few weeks and again in a year.