Not if the teachers aren't adequately able to teach the gifted children. All you then end up with is a child with a lot of wasted potential and a teacher losing patience with a bored child.
As for me, programming since the age of about 10, when I went into secondary school (age 13), the level of IT (in)competency amazed me. I was reprimanded for finishing assigned work quickly and studying independently. I was kicked off the network for writing code because it wasn't understood. Nothing got better, yet I was forced to waste 5 years of my ~81.5 years on Earth (~6.13%) of my ALE, getting a pointless state education that from that day on has not once helped me.
Further education wasn't any better. I joined a course at a local vocational college, one with certificates of excellency, with the prospectus stating it would teach the fundamentals of computing; data structures, networking, algorithms, through to applied computing including ASM, C, C++, et al. In my three weeks there, they taught (very poorly) VB.NET and had students design flyers in Publisher. I was refused entry to the one-year pre-university course as I didn't have the correct number of education goody points. The response I got to quitting was that you can't always have everything you want in life.
This is why education in the UK sucks.
I think if you see a child who has potential, let them explore that potential. There are hundreds of other children who will go through the standard educational system, get their GCSEs and A Levels and useless degrees, before getting ordinary jobs. Let the ones with potential do something different.
Reminds me of the kid recently whose school refused to let them take the time out to work on an acting opportunity, due to the loss of education that a week would present. I'm sure the child would have learnt a lot more about their most likely future career in that week than they did in the classroom.
Anyway, rant over. Standardised education sucks.