There are good schools in Brooklyn. I know several parents who have their kids in public school.
I guess it depends where you live. Brooklyn Heights is probably OK. My grandchildren were in Park Slope, still a mixed bag. Also, you can find yourself with good elementary schools but run into touble in middle or high school.