no. each traded stock has a seller and a buyer. the seller gets currency to spend and the buyer removes same amount of currency from circulation. if it was some central bank that prints new money to buy stonks then it would be correct. this actually happens in quantitative easing.
Finland