You can do either, but using a stationary bike may be more convenient and easier to track your progress.