Thanks for your query.
Any kind of altered menstrual bleeding can be caused by pregnancy
Whether intrauterine or ectopic ( outside the uterus
Hence, please take a home pregnancy test, and if it is positive, consult a doctor.
If negative, and you do not have normal periods soon, you still need to consult a gynecologist to rule out causes of mid menstrual spotting and delayed periods.