If you can withdraw potential winnings from a no deposit bonus depends on a few different factors. The short answer is yes, but as with most bonuses a no deposit bonus usually comes with wagering requirements which need to be met before you can make a withdrawal.
Sometimes there's also a maximum withdrawal, or so-called capped winnings, in the terms of a no deposit bonus.