Yes. Exercise and training is a function of duration and effort. Even when doing structured training on a bike outside, you use effort and duration, not speed or distance. You can used RPE or a HRM for quantifying level of effort, though a power meter is best. A watch or stop watch is good for time. How many time the flywheel of the spin bike rotates is irrelevant and indicative of nothing.