Pregnancy test question!

When collecting urine in a cup for a test do you pee a little then collect or collect right away? Does it matter how much you get in the cup?