Birth control online?

I want to try birth control to help regulate my period. I get it every 3-6 months but I still get my period symptoms like cramps and back pain every month as if I am. Sometimes the pain gets so bad I can’t get out of bed. So I was wondering if getting birth control online is trustworthy or the same as going to the doctors and getting it for my problems?