If someone drank alcohol and know that it is fault and the person want to change can he still not pray 40 days or fast 40 days?

He has to pray and fast.