Yes, compounds with lone pairs on an oxygen atom are capable of being hydrogen bond acceptors and can hydrogen bond with water. The compounds contain other hdyrogen bond donors and acceptors as well. The amine group on p-toluidine can act as both a hydrogen bond donor and acceptor. Also, the phenolic -OH from p-toluidine and the carboxylic acid -OH of benzoic acid can act as a hydrogen bond donor in addition to being a hydrogen bond acceptor.