What a question!I believe the answer somehow should be "Yes",because they do in a same row,but in different classes!
这你要怎么看了!我在3班第2排,你在4班第2排,如果从"排数"这个角度去理解,那我们的确是in the same row,但是从上课的时候去看,显然不是the same row.
So,the question have 2 answers,based on different people's perspective!