Pedantic cause it would almost never happen.
I’m trapped under my own rim and have used up my dribble. No one to pass to…can i hit my own rim with the ball and dribble?
Different question and this could happen though I’ve never seen it. Goaltending says it must be illegaly blocking A SHOT. Every blue moon you’ll see the ball come off the floor or deflect off someone and go in the net. Should a defender think of it…they could just swat it away couldn’t they as there was no shot??