No, light does not travel only in one dimension. Light is an electromagnetic wave, and as such, it propagates through space in three dimensions: length, width, and height. These three dimensions collectively form what we commonly refer to as "space." Light can travel in any direction within these three dimensions.
However, it's important to note that the speed of light in a vacuum is constant and the same in all directions. This means that light travels in straight lines in a given medium, unless it encounters any kind of obstruction or is affected by gravitational forces. In a vacuum or in a uniform medium, light will travel in a straight line along its direction of propagation, which can be considered as one-dimensional. But when considering the full spatial extent of the wave, light is propagating through three dimensions.