Yes, the TV series “Dragnet” (NBC, 1952-59, 1967-70) was based on real cases.
It may have been the original true crime drama, with all shows fashioned from cases found in Los Angeles police files.
All scripts were reviewed by the police and the Los Angeles City Attorney’s office.