You should resume exercise as soon as possible after surgery.  Please look at the rehab programs for further information. Just start with some gentle walking and you will progress quickly.