It is not leagal to travel in local without ticket. In case you are not able to produce a valid ticket when ticket checker(TC) asks for it, you will have to pay heavy fine.