Yes, Section 309 of the Indian Penal Code criminalizes the attempt to commit suicide.