Depending on the instrument and your own innate talent, I think you can learn the basics alone. Pitch, tempo, and things like that are better mastered with a teacher though.
I agree with this comment. We can learn how to read notes and how to play them, but there are parts of music that only a music teacher can teach us. However, there are people who are really gifted that they learn just by watching other people's performance.