if you have a good enough reason for not riding the road... then i say why not
i think that if you have any resistance at all and you keep a decent heart rate and cadence and you're actually sweating... then you can count the miles
it's still not riding, but you're puting miles on your legs