Right. If the radar is held stationary, it can produce a one-dimensional "image" of what is in its line-of-sight. Move it sideways and you generate the 2nd axis.
It's a little more complex than that, because the field of view is not a perfectly narrow beam, but same idea.