How long should you wait?

How long should you wait to take a pregnancy test?. Do you wait until you miss your period?..Just trying to figure out im new to all of this.