Question for y'all

I usually have a cycle length of 28-34 days. I've been off the pill for 5 months so far. I've been very sexually active and now I'm on cycle day 40. Should I test or wait? I don't know if I could be late from the pill or not!