This depends on the broker, but generally the profits made with trading bonus are withdraw-able provided some conditions are met. Almost all brokers that offer No deposit welcome bonus impose strict terms & trading volume requirements before you can withdraw any profits.
It is best to read the terms of the bonus before signing up, so that you don’t get surprises later.