Yeah, legato is also used for a piece of music that is played smoothly.
In guitar world, we call thet "hammer on/pull off" technique legato because the licks played like that are smooth..
As a counter example, on a woodwind instrument such as a Clarinet, Legato means playing the notes without stopping them with your tounge in between. Same effect, different mechanics.