How soon after giving birth can you have an abortion?

I know this sounds crazy and awful but I’m 2 months pp, my boyfriend and i haven’t even had sex yet, and once we do we will be using protection and everything to not get pregnant again, but we’re both so scared something will go wrong and I’ll end up pregnant again. We certainly wouldn’t be ready for another baby now...hopefully it doesn’t happen and we don’t have to do something drastic that we’d feel terrible about for the rest of our lives

But just to satisfy our curiosity, and slightly calm our fears, is there an amount of time you need to wait after giving birth before you can have an abortion?