Can you still do CUDA programming with Optimus GPU

I want to start learning CUDA programming but my laptop uses optimus. is it still possible to do cuda programming with optimus?