This is Say's Law, and was believed throughout the 19th century until being vigorously challenged by Keynes in his "General Theory of Employment, Interest and Money". The "General" in the title specifically refers to the fact that the theory goes beyond the "special" conditions in which Say's Law holds. There are still believers in Say's Law but the mainstream economic position is that it is false in general.