Miscarriage

Will having an early miscarriage still give a positive test result?