i threw up once last early Thursday morning 7 hours after taking my pill

i threw up again today, a week later, 12 hours after taking my pill.

neither time were caused by my pill, the first time was because i drank too much, and the second time was becasue i donated blood

so would the pills have had enough time to absorb into my body?
i heard it only takes 3-4 hours
and is it still ok to have sex? like i feel a bit nervous since it happened twice. but both were plenty passed the 3-4 hour window, and neither time was becasue of a side effect from the pill
i took all the pills in between on time
and will take my pill again tonight on time


and the first time i took my pill at 9:30 PM wednesday and threw up at 4:30 AM thursday

the second time i took my pill again at 9:30 PM like usual on wednesday and threw up at 10AM on thursday