Help! I’m new to this!

So I have irregular periods…and just started having sex. When is the earliest I can take a (hopefully) accurate pregnancy test?

TIA!