I've done both. I've seen badly beaten fleets retreat to the ports. And then, with a rake (or a couple of times after engaging them) I see the fleet somewhat healed.
Truth be told, I think that ships heal slowly over time anyway, at least hull damage. Not sure though. I have to check.