Yep. That's what searching by value is. It comes in handy, though, when you combine it with functions that that the index as a parameter.
When you get to data structures and algorithms, you'll spend a semester on that - a few other things, as well, but much of that course is usually given over to searching and sorting. Fun stuff, actually.