Is record used to mean the same thing in the next two sentences?

The prostitute had a record a mile long.

He ruled that the criminal record of the defendant could not be disclosed to the court.
the same meaning