Miscarriage q

Can a positive pregnancy test relate to a prior pregnancy, even if you got a period between the miscarriage and the positive pregnancy test?