Pode a ilegitimidade ser reconhecida de ofício?