In general, no, since a child is by law a forced heir, however, it is possible in very exceptional cases, taking into account that it also differs according to the Autonomous Community, in Navarre for example, it is legal to disinherit children.