Hi,
Yes, of course, you need to program the PIC to send and receive commands and data to/from the TRH031M according to the datasheet.

/Henrik.