Positive pregnancy test and ovulation test?

Yesterday I took a pregnancy test and it came back positive right away! Well today I took an ovulation test and it was instantly positive. I know these things can happen, but I’ve had ovarian cysts before and don’t know if that can cause a positive test. Has anyone else ever had this happen?