Yes, underlining belongs to typewriters. It has always been preferred to use italics or bold (or bold-italics) for emphasis or italics in reference to say a publication's title.

Further, in this day and age, underlining can be confused with hyperlinks.

Take care, Mike