Read your contract " Termination Clause " before you take a step ...as correctly said by mccoyvq : there will be charges like recruiting,training, tickets etc.,
It depends upon which company you work.