The statement is true.
The lungs are formed from the embryonic foregut, just like some of the digestive track (stomach, part of the small intestine). In week four to five of the embryonic stage, the lung buds appear as an projection from the ventral wall of the foregut where the lobar division happens.