It depends on where you are.

HOWEVER, online gambling losses can NOT be paid electronically, (such as with bank accounts or credit cards,) in the united states.  I don't know about collecting winnings though.