Determinant of block matrix with commuting blocks

The answer is affirmative. See, e.g., theorem 1 of John Silvester, Determinants of Block Matrices.