In the NBA, self-passing is not only legal but also has some variations. You can throw the ball off the backboard or rim, catch it, and score without any other player touching the ball. Or, you can throw the ball off the backboard or rim, grab your own rebound, and dunk it without landing.