Pregnant on pill?

So recently been having weird symptoms to think I’m pregnant. My boobs have been sore for the last week or two. I’ve been nauseous. And this morning I woke up and like was nauseous then instantly threw up. And I haven’t been on my period. It’s just weird discharge. Do you guys think I should take a pregnancy test to be safe.

The last time I had sex was three weeks ago.