No. This is a question that comes up in the UK in the context of unaccompanied irregular migrants. If they're under 18, local authorities have certain responsibilities towards them, over 18 not.
They do age exams, looking at various physical features, but it's fairly error prone and not that precise.