Digital Pregnancy Test

Can I take a digital pregnancy test 6 days before my expected period.