What's the earliest I can do a pregnancy test

I am 8dpo and I think I might be pregnant would  it be too early to do a pregnancy test??