Yes, that should work.
This thread has some good info of the ins and outs
http://www.picbasic.co.uk/forum/show...ighlight=sleep
Read post #3