Doubt in Y matrix

In the video the teacher said that X is matrix with dimension mXn and Y is matrix with dimension mX1, shouldn’t it be nX1 the dimension of Y matrix?