Can you play basketball with a volley ball?

Yes, you can play with a tennis ball if you want. But in any competition or serious game a regulation size ball will be used