Squirrels are considered wild animals and are protected by animal cruelty laws. Keeping them in captivity or interfering with their natural habitat can be considered illegal in some jurisdictions. However, the specific laws and regulations can vary depending on the state, county, or city, so it's always best to check local regulations before taking any action.