Mathematics: Writing down a three-class classifier confusion matrix
No, you did it incorrectly, you need to switch rows with columns (transpose). Next time, please check if a similar question has not been asked before. For the explanation, see https://stats.stackexchange.com/questions/318780/how-to-understand-confusion-matrix-for-3x3 .