Pregnancy test

If im unsure whether im pregnant or not, how soon should I try taking a test?