Question: is whom a direct object?
Answer: Thus who is used as a verb subject, while whom is used as an indirect or direct object of a verb or as the object (complement) of a preposition.