Are digital tests always accurate?

Just curious if digital tests are accurate the ones that read pregnant or not pregnant. Don't you have to be a few weeks along for it to be able to tell you if you're pregnant?