It's not advisable to do any exercise until you are given the all clear from your doctor. It all depends on how quickly you heal.

I wouldn't be paying out for a membership beforehand, wait until you can exercise first. Plus, there's no rush to lose the baby weight, if you breastfeed it's handy to have a bit of extra weight so your body has some fuel stores to use.