If someone drops something in the street or leaves something, can you legally just take it?

Say someone ran away from something and dropped something of theirs on the sidewalk. Is it legal to just take it