Too soon for a test?

Hey ladies, I’m now 4 days late from my period and I took a pregnancy test two days ago but it came out negative and the last time I had sex was about 3 weeks ago. Was it too soon for me to take a test or would it have shown up positive if I was pregnant?