Yes, if you have taken e ticket and it does not get confirmed on chart preparation. Then your ticket will be get cancel, automatically. However, if you have taken, offline ticket, then you have to cancel it at any railway station. Optionally, if you want to travel with un-confirmed offline ticket, then you are allow to travel.