Pregnancy test

Will a test detect HCG 6 days before missed period? I know it’s best to wait but can I go ahead and take one for the sake of satisfying my curiosity?