In some limited conditions federal government spending can stimulate economic activity. The answer to the question depends on the context or the conditions used to measure economic activity. In one context, if the government takes $1 in circulation from person A and gives it to person B - the economic activity of person B could increase and person B could conclude that government spending is stimulative, however the opposite would be true for person A cancelling any net benefit. Currently the majority of government spending activities is in this category of transfer payments - or the reallocation of economic resources through taxation or inflation. In this example government spending clearly was not stimulative to economic activity on a net basis unless an argument is made using dollars not in circulation being taxed and put into circulation. This condition is rare.
Real economic growth, real economic stimulus is related to real wealth creation, or real living standard improvements. In another context, if the federal government taxes, borrows or prints dollars and provides a net beneficial good or service the resulting net benefits would lead to real wealth creation or real living standard improvements. A specific example is the US government's investment in the Interstate Highway System. The resulting return on investment was beneficial to the creation of real national wealth at a time and under conditions when local/state governments and the private sector were either unable or unwilling to make the investment.
One condition when government spending is stimulative becomes clear - When the federal government taxes, borrows or prints dollars and there is a clear definable net positive return on investment relative to alternative investments either by state/local government or the private sector, federal government spending will be stimulative. When we asses federal government spending initiatives we look for this condition, when this condition is met we support the spending initiative.