My surgeon would not allow patients to leave the hospital until you could get in and out of a car, and go up and down steps. There was a place in the hospital set up with a mock car & stairs to practice.
You do need at least one good sturdy handrail.
You also want to avoid making lots of trips up and down the steps for a couple of weeks. That can contribute to getting a hematoma, which you don't want. Hold it to 3-4 trips daily right after the surgery.