Pregnancy Test

How early can you take a pregnancy test? It’s been two weeks since I’ve had sexual intercourse and normally i cramp before my period which lets me know it’s coming but lately I’ve only been having mild cramps but in my lower stomach and i had a pain in my side a week ago. I’ve been nauseated but I just associated it with my sinus draining and I’ve been so tired and my nipples are sore. My period is due in 6 days so idk how soon it is to take a test or should I just assume its my period coming