"Important" might be too strong a word, but I never considered not giving my child one.
They help distinguish betweenpeople with the same name for compute records e.g. John Andrew Smith, John Robert Smith
They give the child a second option. My siblings and I all have unusual names, my parents gave me a nice standard middle name in case we didn't like them.