Birth control and miscarriage

As

I am not going to lie after my miscarriage I have been scared shitless to even think of being pregnant again. I had the miscarriage and still haven’t received my period. How long does it take for me to be back to my regular cycle? And would it be okay if I got on birth control before I gain my period? Or would I need to wait? I’m so confused and scared!