You can have a first-person narrative, of course, in which the only voice in the book is the narrator's and there is no direct dialogue at all but pulling that off is a considerable achievement.
WSJ: Alexander McCall Smith on Writing Dialogue | Word Craft