Yes, children can get hernias, particularly umbilical hernias which are often present at birth, and inguinal hernias, which are more common in boys.