Running when I can’t ride

that’s a long time off the bike, can you get in a gym and use a spin bike, or join a spin studio for the time?