Absolutely. I've also gotten off the ship, walked around a bit, and gotten back on.
There is very little scheduled on the ship while it is in port--usually a few movies. The kid programming is in full swing though. It's the perfect time to enjoy the pools, fitness center, spa, etc.