Sex after delivery

I know you're supposed to wait until Dr clears you for vaginal sex but is anal ok until you're cleared? Does it matter if you've had a c-section or not?