Yes it is correct, but if you're using PBP you don't really need to use Peek/Poke.

ANSEL = 0
ANSELH = 0

The above will do the job.