Of course, unless the father has lost the entire custody of the child and the court has also given the restraining orders to keep the child away from their father. Other than that, it is completely illegal to keep a child away from their father.