You can, but we cannot guarantee that the tracking will be as accurate when doing anything other than walking.
The app should be able to track any repeating movements you make and use these to progress you through the game. However, because the app was designed with walking as the primary focus, there may be some unforeseen tracking issues when using the app with different methods of exercise.