Yes, if you win at an online casino you can of course withdraw your money if you want to. The only exception is if you're playing with a casino bonus, then you might have to wager your funds X amount of times prior to being able to withdraw.