Pregnancy tests

I'm confused about when to take pregnancy tests. If I take it after my missed period, will it still be accurate?