Yes, according to the DSM-5, gambling disorder (gambling addiction or compulsive gambling) is a mental illness.