How soon before pos opk can you have sex and get pregnant

My husband works out of town a lot and Sadly will be missing my ovulation period for the next two cycles. I was excited to have perfect timing last month but unfortunately experienced a chemical pregnancy. How many days before ovulating have you had sex and gotten pregnant from it? Looking for some hopeful stories!