How soon after having a miscarriage can you become pregnant?

My choir teacher had a miscarriage almost 2 years ago and just gave birth to a little boy. I don't know anything other than that, sorry