Kegel exercises

Does it hurt to do kegel exercises right after delivery? I know they say let your pelvic rest (aka no sex and no tampons) would that include kegel exercises too?