I would discuss this with your orthopedist before the surgery.
When my wife had her hip replacement, she had a discussion with the surgeon where he asked he what activities she did and what she wanted to do. That was to ensure she got a replacement that would do well with those activities. She bowled, cycled, and played golf. Additionally, the following PT regimen was tailored to also have an additional focus on those activities.
When I had a torn meniscus in my knee, cycling did not bother it, nor did walking, but getting into bed sometimes was excruciating. When I decided to get it repaired, the surgeon had me talk to the PT folks and they included cycling activities into the routine.