Yes, if either the length or width (or both) is zero, the area will be zero.