As long as you do well in dental school, you can specialize from anywhere. The dental school you go to does not instantly make it easier or harder. That said, if the school does not have a department for the specialty you're interested in, it will be more difficult to get exposure.