Birth Control - Regular Doc. Or go to Ob/Gyn?

So I’ve been sexual active and want to be safe and avoid pregnancy. This may be a silly question, but where would one go to get birth control pills, your regular doctor physician or ob/gyn? Before when I was 15 I was getting these birth control pills from my ob/gyn because of my irregular periods and I had a cyst on my left ovary that was causing pain. Now that I’m under a new insurance I’m unsure.