It is okay to use the money withdrawn by credit card for stock trading, but it is not recommended.
After the money is withdrawn from the credit card, the bank will not track its use. As long as you repay the money on time, the money can be used for investment or consumption.
But it is not recommended to do this. The risk of borrowing money to speculate in stocks is very, very high!
Stock trading requires a certain technical level, an understanding of the stock market, and strict operational requirements. It is easy to fall into the economic whirlpool by borrowing money to trade in stocks.