Just a question as unsure

Has anyone tested 2 days before period is due and got negative test but actually been pregnant?