Did I do this right?

A cage with a volume of 27 cubic meters, if the sides are in whole meters only and the width is 3 meters, what are the possible dimensions for the length and height?

27=3X3X3
or
27=9X1X3

Yes. Your answers are correct.