Pregnancy question

if you have unprotected sex how long do you have to wait to take a test? Also how long until you would get any symptoms? Sorry if I sound uneducated, me and my husband are going to start TTC and I'm clueless😂!