IDK what to do!

my partner and i were planning to have sex 3 days before my ovulation day. i am currently talking a pill. is it still safe to have sex? thank you!