Can u take a pregnancy test at 7dpo???

Can u take a pregnancy test at 7dpo???