Yes, it's generally safe to go AFK on Tales of Pirates.
You can step away without much worry, though as with any online game, it's smart to find a quiet spot before you do.