It's fine, there's no reason not to. As with just about any bike it's a good idea to cover the stem and headset with a towel. Otherwise you'll be fine.
Do yourself a favor and get the biggest fan you can blowing on your core. Otherwise the workout becomes counterproductive pretty quickly.