BC after a miscarriage

Hi all! I had a miscarriage about two weeks ago and I am trying to get on birth control. When would be the best time to take it? Immediately after my bleeding stops or wait until my next period?