Breastfeeding can it lower your chance of getting pregnant

Hi my son is 2 years old and still breastfeeding him as a comfort

For him he has it mainly to fall sleep

Does breastfeeding him lower my chances of getting pregnant?