It's a very common and informal way to refer to a friend in Spanish, similar to how we use "buddy" or "pal" in English.