Confused!

I have endometriosis and my pelvic pain has been different the past month. I’ve been getting sick just looking at food or certain smells. I’m looking more bloated than normal. I haven’t had a period in months since the doctors wanted to try depo shot last year and recently just got off a pill to stop my periods (wasn’t a birth control). My boyfriend and I had unprotected sex a lot and he came in me once. Should I buy a test?