Pregnant?

I recently went through a lotta shit at the hospital I was on antibiotics, a lot of other medications, I had infections and stuff and now my period is 10 days late. So I’m just wondering if the things I went through at the hospital might influence my cycle and might have messed that up? Or if I could be pregnant because yes I have been having sex with my boyfriend.

Then also if I take a pregnancy test, when should I do it?? Cause most of them say I should take it on the first day of my missed period but it’s already been 10 days late so idk what to do