Is discipline a gene that can be inherited?

Yes and no. Like most behaviors, personal discipline is both a product of nature and nurture. Some basic personality characteristics are present at birth, but these are vastly modified by the experiences a person has, the life they lead, and whatt they are taught.