False positives!?

I have endometriosis and I got a positive pregnancy test and then a negative. I read it in the time frame so it apparently was accurate. do you guys get false positive pregnancy tests? I am so confused idk right now.