Advice needed..

How long after unprotected sex would I know if I had herpes or how long would it take for an outbreak to occur? If I have no symptoms, is the only way to find out is if I have a blood test?