You can get pregnant from as little as 3 weeks after having a baby. While breastfeeding can prevent ovulation, this is not an exact science and should not be viewed as a reliable method of contraception. If you are breastfeeding and do not wish to become pregnant you should use a regular contraceptive method, your GP should be able to advise you on this.