Making sentence "serve time" and "do time"
Here is a quote from a certain film.
A) Now, our only requirement is that none of you have ever served any time in jail.
And I tried and made a paraphrase of A, into the following B.
B) Now, our only requirement is that none of you have ever done any time in prison.
I just learned by dictionary that the phrase "serve time" and "do time" are synonym, right?
And I also changed "jail" into "prison" because they are synonym too. No problem, right?
So all I want you to is confirm whether or not B is definitely fine. Does it sounds natural to you?