You can shoot a crossbow anywhere if it is spacious. You don’t want to shoot an arrow into your neighbor’s window and risk getting sued by the law for endangering life and creating a public nuisance.