Mid cycle spotting means not ovulating?

Na
So I had some spotting on cd 22 and 23, which I thought meant that I was ovulating. But on cd 22 I had blood work done and just found out by my doc that I'm not ovulating. Was it too soon for the blood work to be done if I was really ovulating on the day the blood work was done?
Thanks in advance!