Am I pregnant?

Lilia
How soon can you know if you're pregnant by using a pregnancy test? Is it on the 2nd or 3rd week or is it on the first week that you missed your period?