Funding varies by locality, but yes, the public schools get funding from the federal government, the state government, and the local government. Most local funding is provided by property taxes, which can vary by local housing valuations. Most state funding programs try to allocate funds to equalize the per student funding across the state to help correct the discrepancy by locality. Federal funds are usually grant related, but oftentimes those grants are need-based or targeted to higher needs groups (% on IEP).