In Santa Clarita yes but with provision of ordinance. However in HOA communities forget it.
Same with city of Palmdale. I find HOA communities in Palmdale you could get away keeping chickens. Most HOA fees are not crazy expensive like in Santa Clarita or LA rich suburb communities.