Yes. Section 115 expressly contemplates circumstances in which a minor remains with the father. Custody can also be affected by parental agreement and the child's welfare.
The father and mother continue to have legal duties toward their child even after their marital relationship ends.