There is nothing wrong about doing this. To make it more accessible, add the scope="row" attribute on the TH tags which tells assistive technologies that the header is infact for the row (not the column).
See example 1 here: http://www.w3.org/TR/WCAG20-TECHS/H63