Bleeding between periods on the pill

I’ve been on the pill for almost 3 years, never missed a day never taken it late. Just this month I’ve been spotting even though I got off my period two weeks ago. This spotting started about 4-5 days ago. Do I need to switch pills?