If your period comes on early does that mean that you are not pregnant?

if your period comes on early does that mean that you are not pregnant?