Spotting and cramps

So this is my third month on being on the pill and i have a full week until “period week” and i spotted and am having really bad cramps... is it possible to be ovulating when on the pill? I didn’t think you ovulated on the pill at all..