Hi and thanks for the question,
getting pregnant actually depends on the timing of sexual intercourse and also on a host of factors. Having sex at non "at risk periods" for pregnancy
will certainly not lead to a pregnancy. This however does not imply you are infertile. If your home pregnancy test tested positive, its a good idea then.
I suggest you visit a gynecologist/obstetrician for a comprehensive evaluation and advice.
Thanks and hope this helps,