Answer:
Yes. In fact, a sentence must have a direct object in order to have an indirect object. (Note, however, that some consider the subject of a sentence in the passive voice to be an "implicit" indirect object, because it the sentence is changed to the active voice, the subject in the passive voice will often become an indirect object in the active voice.)