Yes, the wiring is correct. You could use the code snip given @ http://www.picbasic.co.uk/forum/showthread.php?t=12911
to start counting your encoder pulses.

Cheers

Al.