Pre and post surgical rehab

Pre and post surgical rehab. What is it and is it really important?