yes… but I hope you are using a child theme for this modification so that any future updates of the theme, your changes won’t be lost. Another method is when using a child theme, copy the above code but for the styling, just do this:
{ border-bottom: display: none; }