When a battery is your power source, what is ground?
Yes - just remember that your ground in that case will only be relative to the battery.  If you go to connect this to another device (serial interface, etc) you need to link the ground lines so they're a common ground.

So long as it is isolated, you're fine.