What should I do

I’ve been bleeding on and off the past two weeks like spotting and this week I got my period (which is when I was suppose to)

Can my birth control do this? Should I go to the doctor?