Definetely not with the standard code modules available. At best, you could get a single basketball player to run up and down a court, and possibly dribble a ball, and maybe even shoot towards the hoop. But all of the additional AI you would need for opponents, not to mention ball physics, that would be a ton of code to create.