If you ovulate before you get the pill or the injection (Do consider
pros and cons, by the way.), you can get pregnant, yes, and taking pills or getting the injection can cause some problems for the unborn child. I'd make sure to mention to the doctor what happened before starting anything.