Question: was this the final season of code black

Answer: Yes, On May 14, 2017, the series was renewed for a third season, which premiered on April 25, 2018. On May 24, 2018, CBS cancelled the series after three seasons. The series finale aired on July 18, 2018.