is the pickit4 compatible with PICkit 44-Pin Demo Board (PIC18F45K20)
Yes, just align the arrows.

Microchips programming interface ICSP typically uses a 6x1 pin header, whereof the last pin is not used. The pickit 4 has an 8x1 header, where the additional pins are used for different modes of operation like JTAG.