Pregnant on pill?

I was wondering if you have sex and it's unprotected and the guy cums inside you and your on the pill can you still be pregnant? Because my body hasn't been the same since and I've been feeling nausea however it only happened 3 days ago