That statement is True.
The purpose of calculating Gross Domestic Product is to measure the market value of all the goods and services that produced by a country within a specific time period.
Gross Domestic Product is calculated using this formula:
Consumption + Gross Investment + Government investment + (Exports - Imports)