Can I ask letter of recommendation to my undergraduate thesis supervisor for PhD in other lab
Yes, it's perfectly fine. He should be encouraging you to seek other opportunities as well as staying in his own lab. It take a very jealous and vindictive person to refuse to write a reference for a good student applying to other places. If he is such a person, it would not be a good idea to stay working with him anyway.